Skip to main content

Dark web HTTP requests using Tor, a stem helper library.

Project description

stemquests

Python Requests and Stem helper for making HTTP requests over Tor.

Purpose

A Tor proxy and the Python requests package are difficult to work with. This package attempts to fix this issue by creating a module (TorInstance) that allows starting new Tor proxy processes using stem, then generating requests Sessions to send requests with.

Usage

Simply import TorInstance, create the object, then call tor.get_session() to get a new requests session!

from stemquests import TorInstance

tor = TorInstance()
session = tor.get_session()

print(session.get('https://check.torproject.org').text)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stemquests-1.1.1.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

stemquests-1.1.1-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page