Skip to content

Instantly share code, notes, and snippets.

View BlondinkaQ's full-sized avatar
📈
Only grow up

Artem BlondinkaQ

📈
Only grow up
View GitHub Profile
@BlondinkaQ
BlondinkaQ / selenium_xhr_requests_via_performance_logging.py
Created November 25, 2022 01:34 — forked from lorey/selenium_xhr_requests_via_performance_logging.py
Access Chrome's network tab (e.g. XHR requests) with Selenium
#
# This small example shows you how to access JS-based requests via Selenium
# Like this, one can access raw data for scraping,
# for example on many JS-intensive/React-based websites
#
from time import sleep
from selenium import webdriver
from selenium.webdriver import DesiredCapabilities
bot.action('kovel_key001', (ctx) => ctx.reply('Введите ваш ФИО и номер телефона:\n'),
ctx.telegram.forwardMessage(ctx.from.id, ctx.from.id, ctx.message.id)
)