Skip to content

Instantly share code, notes, and snippets.

@frknkuru
frknkuru / selenium_xhr_requests_via_performance_logging.py
Created November 29, 2023 04:35 — 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
@lorey
lorey / selenium_xhr_requests_via_performance_logging.py
Last active August 4, 2025 16:16
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
@msanders
msanders / smoothly_move_mouse.py
Created May 24, 2011 15:08
The autopy.mouse.smooth_move() function implemented in Python instead of C.
import autopy
import math
import random
import time
# The autopy.mouse.smooth_move() function implemented in Python instead of C.
def smoothly_move_mouse(dst_x, dst_y):
'''
Smoothly moves the cursor to the given (x, y) coordinate in a
straight line.