News for hackers. Stuff that matters.
Re:Yahoo is making a return to search by saddd on Monday January 30, 2023 @08:18PM (#34589483)
I have the feeling that whatever you're talking about is explicitly not crawlable.
Re:Yahoo is making a return to search by simonw on Monday January 30, 2023 @08:35PM (#34589650)
Yeah, the GitHub robots.txt is surprisingly restrictive:

https://github.com/robots.txt

   User-agent: *

   Disallow: /*/pulse
   Disallow: /*/tree/
That "/*/tree" rule means that search engine crawlers are allowed to hit the README file of a repo but effectively NONE of the other files in it.

Which means that if you keep your project documentation on GitHub in a docs/ folder it won't be indexed!

You need to publish it to a separate site via GitHub Pages, or use https://readthedocs.org/

(Side note: I just noticed https://github.com/ekansa/Open-Context-Data is explicitly listed in the robots.txt for GitHub - the only repo that gets a mention like that. I'd love to know the story behind that!)

Re:Yahoo is making a return to search by burkaman on Monday January 30, 2023 @08:44PM (#34589740)
That repo apparently used to be the largest on GitHub: https://news.ycombinator.com/item?id=5912922. I bet Google was repeatedly scraping the entire thing and putting too much strain on their servers at the time it was added. It's been 10 years, what are the odds nobody at GitHub today remembers why it was added?

Also, very relatable to see a decade old "I'll update this shortly" comment that was never updated. We all have a few of those.

Re:Yahoo is making a return to search by snowycat on Monday January 30, 2023 @10:55PM (#34590759)
It appears that the creator of the repo actually confirmed this: https://twitter.com/ekansa/status/1137052076062650368
Re:Yahoo is making a return to search by knute on Monday January 30, 2023 @09:45PM (#34590189)
/*/tree is only for directory listings. File contents will be under a /blob/ path, e.g. https://github.com/facebook/react/blob/main/AUTHORS, and should be, AFAIK, indexable.

(mandatory disclaimer: I'm a GitHub employee, not speaking on behalf of the company)

Re:Yahoo is making a return to search by staplung on Monday January 30, 2023 @10:45PM (#34590667)
If they can't hit `/*/tree` is there a way to know the URLs of the files?
Re:Yahoo is making a return to search by pancrufty on Monday January 30, 2023 @10:57PM (#34590792)
Direct links from crawlable pages
Re:Yahoo is making a return to search by kadoban on Monday January 30, 2023 @10:54PM (#34590744)
Sure, clone the git repo.
Re:Yahoo is making a return to search by utopcell on Tuesday January 31, 2023 @05:42AM (#34593576)
GitHub would not be happy with Google cloning all repos, and many of them at a high frequency, in order to circumvent a robots.txt restriction.
Re:Yahoo is making a return to search by kadoban on Tuesday January 31, 2023 @07:54AM (#34594466)
They're clever people, they could just do partial updates (pull instead of clone). I doubt it'd be that much of a strain.
Re:Yahoo is making a return to search by simonw on Tuesday January 31, 2023 @12:48AM (#34591685)
I asked about this on the support forum a while ago and never got a satisfactory response: https://github.com/community/community/discussions/20958
Re:Yahoo is making a return to search by blep_ on Tuesday January 31, 2023 @01:10AM (#34591834)
There's also two users:

    Disallow: /account-login
    Disallow: /Explodingstuff/
The first for obvious reasons, the second probably because they've uploaded nothing of substance besides a copy of WannaCry.
Re:Yahoo is making a return to search by saurik on Monday January 30, 2023 @08:22PM (#34589532)
A public git repository is definitely crawlable. Google seems to have given up actively going out of their way to index things that are hard to crawl as they got so big and important it was easier to just tell people "thou must do X or we won't index you and you want to be indexed", but increasingly the content I want to find is in weird little silos.
Re:Yahoo is making a return to search by Nuzzerino on Monday January 30, 2023 @08:22PM (#34589526)
That doesn’t change anything regarding the actual point of the comment.
Re:Yahoo is making a return to search by astrange on Monday January 30, 2023 @08:47PM (#34589779)
Your idea for a search competitor is to ignore robots.txt?
Re:Yahoo is making a return to search by VWWHFSfQ on Monday January 30, 2023 @09:03PM (#34589917)
or an advertising competitor that ignores DNT!

oh wait

Re:Yahoo is making a return to search by berkle4455 on Monday January 30, 2023 @10:12PM (#34590386)
It's a just a text file.
Re:Yahoo is making a return to search by chihuahua on Monday January 30, 2023 @10:17PM (#34590428)
This seems perfectly logical to some people:

Google ignores robots.txt: "Google is evil! They're trespassing on my webserver!"

Google follows robots.txt: "Google search results suck! They're not indexing GitHub!"

Re:Yahoo is making a return to search by Nuzzerino on Tuesday January 31, 2023 @05:54AM (#34593644)
Yes, clearly that's the best possible interpretation of what I said. /s
Re:Yahoo is making a return to search by sebosp on Tuesday January 31, 2023 @01:15AM (#34591867)
Curious, if I had the list of repos, is there anything that forbids me from `while read url; do git clone $url data;./train data; rm -rf ./data; done`. Besides licensing, ie ratelimit/throttle, similar question, the search for code across all repos provided by github ui gets throttled pretty fast, what do people do? (not suggestion in a hundred(?) years to do the while loop for this tho ;))