in reply to Re^4: Scrappy user_agent error
in thread Scrappy user_agent error
Look at the source https://metacpan.org/source/AWNCORP/Scrappy-0.94112090/lib/Scrappy/Scraper/UserAgent.pm, first parameter is browser, second parameter the operating system, i.e. you would use something like scraper->user_agent("opera","Macintosh")
PS: As the others have said, if the sites doesn't want robots, you shouldn't just ignore that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Scrappy user_agent error
by docster (Novice) on Jan 06, 2012 at 16:51 UTC |