Guest User

Manual Download

a guest
Nov 12th, 2020
221
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. ps5http = {'Accept-Encoding': 'deflate, gzip', 'Connection': 'Keep-Alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*,q=0.8', 'User-Agent': 'Mozilla/5.0 (PlayStation; PlayStation 5/2.20) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15', 'Accept-Language': 'en-GB'}
  3. req = requests.get("https://manuals.playstation.net/document/gb/ps5/index.html",headers=ps5http)
  4. open("index.html","wb").write(req.content)
RAW Paste Data