Skip to content

Instantly share code, notes, and snippets.

@thomaswpp
Created December 27, 2016 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaswpp/65c17942c30b826bfff76c53696556ae to your computer and use it in GitHub Desktop.
Save thomaswpp/65c17942c30b826bfff76c53696556ae to your computer and use it in GitHub Desktop.
import requests
url = 'http://www.submarino.com.br/'
r = requests.get(url)
cookie = r.cookies.get_dict()
#print(cookie)
url = 'http://www.submarino.com.br/busca/?conteudo=notebook'
r = requests.get(url, cookies=cookie)
with open('submarino.html', 'w') as f:
f.write(r.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment