Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robotex does not follow user-agent precedence rules #9

Open
MothOnMars opened this issue May 4, 2018 · 0 comments · Fixed by GSA/robotex#1
Open

Robotex does not follow user-agent precedence rules #9

MothOnMars opened this issue May 4, 2018 · 0 comments · Fixed by GSA/robotex#1

Comments

@MothOnMars
Copy link

Bug Steps:
Attempt to extract the delay for a user agent from a robots.txt file where the crawl-delay for a specific user agent appears after the rule for *. Example:
https://www.archives.gov/robots.txt

User-agent: *
Crawl-delay: 10
...
User-agent: usasearch
Crawl-delay: 2

Expected results:

> Robotex.new('usasearch').delay('https://www.archives.gov')
#=> 2

Actual results:

> Robotex.new('usasearch').delay('https://www.archives.gov')
#=> 10

See https://developers.google.com/search/reference/robots_txt#order-of-precedence-for-user-agents for precedence rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant