Skip to content

Instantly share code, notes, and snippets.

Avatar

Zhou Hao upbit

View GitHub Profile
@upbit
upbit / README.md
Last active Nov 29, 2021 — forked from ZipFile/README.md
Pixiv OAuth Flow (with Selenium)
View README.md

Retrieving Auth Token (with Selenium)

  1. Setup, install Selenium/ChromeDriver
pip install selenium
# download chromedriver from https://chromedriver.storage.googleapis.com/index.html?path=91.0.4472.101/
# eg: wget https://chromedriver.storage.googleapis.com/91.0.4472.101/chromedriver_mac64.zip && unzip chromedriver_mac64.zip
@upbit
upbit / jsonp-proxy.py
Created Jul 1, 2020 — forked from netj/jsonp-proxy.py
A primitive JSON-P proxy in Python compatible to node-jsonp-proxy (support python3)
View jsonp-proxy.py
#!/usr/bin/env python
# A very primitive JSON-P proxy in Python
# Derived from Patric Fornasier's Blog: http://patforna.blogspot.com/2009/03/jsonp-proxy-server.html
# Made compatible with node-jsonp-proxy: https://github.com/clintandrewhall/node-jsonp-proxy
import sys
import re
import urllib
if sys.version_info >= (3, 0):
from http.server import BaseHTTPRequestHandler, HTTPServer