Skip to content

Instantly share code, notes, and snippets.

View megapegabot's full-sized avatar
🏠
Working from home

megapegabot

🏠
Working from home
View GitHub Profile
@lorey
lorey / selenium_xhr_requests_via_performance_logging.py
Last active May 13, 2024 09:52
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
@lackac
lackac / haproxy.cfg
Created September 22, 2012 19:14
HAProxy configuration with Websocket support
global
maxconn 4096 # Total Max Connections. This is dependent on ulimit
nbproc 2
log 127.0.0.1 local1 notice
defaults
mode http
log global
frontend all 0.0.0.0:80