init commit
This commit is contained in:
parent
fae1af7da6
commit
849c628df7
13
getPage.py
Normal file
13
getPage.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import dryscrape
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
|
dryscrape.start_xvfb()
|
||||||
|
|
||||||
|
session = dryscrape.Session()
|
||||||
|
session.visit('http://192.168.1.1')
|
||||||
|
response = session.body()
|
||||||
|
soup = BeautifulSoup(response,features="lxml")
|
||||||
|
print(soup)
|
||||||
|
#soup.find(id="intro-text")
|
||||||
|
# Result:
|
||||||
|
#<p id="intro-text">Yay! Supports javascript</p>
|
Loading…
Reference in New Issue
Block a user