From d5b3d98b64416f3c142bd00e8a81fbdb4847d173 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 1 May 2020 09:48:26 -0400 Subject: [PATCH] working --- getPage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)