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

Adding arbitrary rules #4

Open
marktran opened this issue Feb 13, 2014 · 10 comments
Open

Adding arbitrary rules #4

marktran opened this issue Feb 13, 2014 · 10 comments

Comments

@marktran
Copy link

Is it possible to add arbitrary rules? e.g. Crawl-delay:

User-agent: msnbot
Crawl-delay: 1

http://www.bing.com/blogs/site_blogs/b/webmaster/archive/2009/08/10/crawl-delay-and-the-bing-crawler-msnbot.aspx

@PikachuEXE
Copy link
Contributor

user_agent :msnbot do
  add_rule 'Crawl-delay', 1
end

According to https://github.com/lassebunk/human_power/blob/master/lib/human_power/generator.rb#L27

Edit: this issue can be changed to request more doc on adding arbitrary rules

@lassebunk
Copy link
Owner

That's a good idea. I have an idea for how this could be implemented.
Thanks 👍

@PikachuEXE
Copy link
Contributor

Isn't this "implemented"?

@lassebunk
Copy link
Owner

Not yet. Still thinking 😊

@PikachuEXE
Copy link
Contributor

But #4 (comment) works already?

@lassebunk
Copy link
Owner

Yes, it will work.
But I'd like for you to be able to write "crawl_delay 1" (shorthand method)

@lassebunk
Copy link
Owner

Do you know of any other rules that should be added?

@PikachuEXE
Copy link
Contributor

I have no idea :p
@marktran you have any?

@marktran
Copy link
Author

That's actually the only one I know of

@lassebunk
Copy link
Owner

Ok, thanks. I'll keep this in mind. Keeping this open.

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

No branches or pull requests

3 participants