Skip to content

Instantly share code, notes, and snippets.

View kapilarathnayaka's full-sized avatar

Kapila Rathnayaka kapilarathnayaka

View GitHub Profile
@kapilarathnayaka
kapilarathnayaka / selenium_xhr_requests_via_performance_logging.py
Created January 5, 2023 04:06 — 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
@kapilarathnayaka
kapilarathnayaka / npm-using-https-for-git.sh
Created September 2, 2022 07:18 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."[email protected]:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://