Archive

Posts Tagged ‘cookies’

scraping Steam, get through the age check

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.

Advertisements
Categories: python Tags: , ,