Archive
Posts Tagged ‘cookies’
scraping Steam, get through the age check
May 17, 2017
Leave a comment
Problem
You want to scrape Steam but sometimes Steam brings up an age check. How to get through it from a script? Examples: Fallout: New Vegas (age check), PST: EE (additional maturity check?).
Solution
import requests
COOKIES = {
'birthtime': '283993201',
'mature_content': '1',
}
URL = "http://store.steampowered.com/app/2028016/Fallout_New_Vegas_Ultimate_Edition/"
r = requests.get(URL, cookies=COOKIES)
Tip from here.
