t1gor / Robots.txt-Parser-Class

Php class for robots.txt parse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crawl-Delay not supported

troelskn opened this issue · comments

Hi,

Nice class. I doesn't recognise the directive for Crawl-Delay though. (See: http://en.wikipedia.org/wiki/Robots_exclusion_standard#Crawl-delay_directive and https://ahrefs.com/robot/)

Hi. Thanks for the suggestion.

I will look over this and update the code shortly. Alternatively - you could submit a pull-request.

Thanks,
Igor

It would also be very helpful if you could provide an example of the file that you are trying to parse, to know what should we expect.

The ahrefs link shows an example. I'll have a look at making a pull request.

Opened pull request #5