Closed tlvince closed 11 years ago
urllib2 by default does not set a useragent string. On some websites, requests without a "User-Agent" headers are assumed to be malicious bots and are therefore blocked.
This adds a "fake" useragent to workaround this.
urllib2 by default does not set a useragent string. On some websites, requests without a "User-Agent" headers are assumed to be malicious bots and are therefore blocked.
This adds a "fake" useragent to workaround this.