Last active
May 28, 2016 18:44
-
-
Save mtairu/930a71b1fd1b1d35cddb5f52374b7a01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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