10 lines
336 B
Python
10 lines
336 B
Python
from requests_html import HTMLSession
|
|
|
|
print(1)
|
|
session = HTMLSession()
|
|
response = session.get("https://zapchastiya.ru/")
|
|
print(2)
|
|
response.html.render(wait=2) # Ждем выполнения JS, 2 секунды например
|
|
print(3)
|
|
print(response.html.html) # Выводим страницу после выполнения JS
|