阅读背景:

如何在Rails中为Mechanize设置自定义用户代理

来源:互联网 

I know you have a set of pre-defined aliases you can use by setting agent.user_agent_alias = 'Linux Mozilla' for instance, but what if I want to set my own user agent, as I'm writing a web crawler and want to identify it, for the sites I'm indexing's sake. Just like Googlebot.I know you have a set of pre-defined aliases yo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: