diff --git a/getPage.py b/getPage.py index 07e4cc3..66ea8a6 100644 --- a/getPage.py +++ b/getPage.py @@ -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)