Files
mail_order_bot/tests/site/auth.py
2025-12-06 16:58:24 +03:00

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