hwkns / macguffin

Automated tools for handling Scene and P2P film releases -- gather and verify metadata, take screenshots and upload them to an image host, create a .torrent file and upload it to a bittorrent tracker.
GNU General Public License v3.0
90 stars 19 forks source link

Unable to pass user-agent #14

Open b0xy opened 7 years ago

b0xy commented 7 years ago

How can we pass a user-agent to be something other than the default within python?

hwkns commented 7 years ago

During IMDb scraping? Or torrent uploading? And just out of curiosity, why?

b0xy commented 7 years ago

for torrent uploading. i made a script for another tracker which uses recaptcha and the script is triggering a login prompt due to user-agent. (that or it's ignoring the session cookies i've loaded.)

site staff recommended changing the user-agent to rule out the captcha issue.