Skip to content

Instantly share code, notes, and snippets.

View zhangjianyu1979's full-sized avatar

jianyu zhangjianyu1979

  • china telecom
  • shanghai
View GitHub Profile
@jefftriplett
jefftriplett / tor.py
Last active August 5, 2024 15:44
Python Requests + Tor (Socks5)
"""
setup:
pip install requests
pip install requests[socks]
super helpful:
- http://packetforger.wordpress.com/2013/08/27/pythons-requests-module-with-socks-support-requesocks/
- http://docs.python-requests.org/en/master/user/advanced/#proxies
"""