This commit is contained in:
Nick 2020-05-01 09:48:26 -04:00
parent 067ba688db
commit d5b3d98b64
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ from bs4 import BeautifulSoup
dryscrape.start_xvfb()
session = dryscrape.Session()
session.visit('http://192.168.1.1')
session.set_header("User-Agent", "Mozilla/5.0 (Windows NT 5.1; rv:41.0) Gecko/20100101 Firefox/41.0")
session.visit('http://192.168.7.1')
response = session.body()
soup = BeautifulSoup(response,features="lxml")
print(soup)