Skip to content

AleksTk/python-tor-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Tor Client

Enables to run http requests over Tor.

Usage

    print("Default IP:", requests.get("http://httpbin.org/ip").text)
    >>> 185.170.42.18

    tor = TorClient(password='password')
    
    session = tor.get_session()  # get new identity
    print("IP:", session.get("http://httpbin.org/ip").text)
    >>> 171.25.193.20
    
    session = tor.get_session()  # get new identity
    print("IP:", session.get("http://httpbin.org/ip").text)
    >>> 192.42.116.16

Installing Tor on Windows

tor --service install -options ControlPort 9051

License

MIT License

Copyright (c) 2017 Alexander Tkachenko

About

Enables to run http requests over Tor.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages