14 lines
310 B
Python
14 lines
310 B
Python
|
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>
|