Skip to content

Instantly share code, notes, and snippets.

@mtairu
Last active May 28, 2016 18:44
Show Gist options
  • Save mtairu/930a71b1fd1b1d35cddb5f52374b7a01 to your computer and use it in GitHub Desktop.
Save mtairu/930a71b1fd1b1d35cddb5f52374b7a01 to your computer and use it in GitHub Desktop.
import request as re
from bs4 import BeautifulSoup as bs
url = ''
headers={"User-Agent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36"}
#headers ={"User-Agent": ""}
s = re.Sessions()
#then
s.get(url,headers=headers)
s.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment