Skip to main content

Package for sending multi requests with different proxies.

Project description

multireq

multireq is a python package that helps you to send multiple requests simultaneously and secretly.

Installation

pip install multireq

Simple Usage

import multireq

mr = multireq.multiRequester(use_proxy=True)

urls = [
    "https://jsonplaceholder.typicode.com/todos/1",
    "https://jsonplaceholder.typicode.com/todos/2",
    "https://jsonplaceholder.typicode.com/todos/3"
]

responses = mr.get_many(urls)

for response in responses:
    print(response.json()['title'])

Output

delectus aut autem
quis ut nam facilis et officia qui
fugiat veniam minus

If you don't want to use proxies, you can simply set the use_proxy to False. When you use a proxy, requests can be so slow. However, sometimes you have to hide your identity when you send requests. If you don't have privacy issues, don't use the proxy and send requests faster.

mr = multireq.multiRequester(use_proxy=False)

Also, you can send just one request.

response = mr.get(url)

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

multireq-0.0.10.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

multireq-0.0.10-py2-none-any.whl (45.1 kB view details)

Uploaded Python 2

File details

Details for the file multireq-0.0.10.tar.gz.

File metadata

  • Download URL: multireq-0.0.10.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0

File hashes

Hashes for multireq-0.0.10.tar.gz
Algorithm Hash digest
SHA256 1c0ba677490f76717333d38608882d53d9a94f70d280dcf23778230f006d96a9
MD5 fc488b69afd33a939e9df2b18d6e35dd
BLAKE2b-256 1f823562a4d11576f6594a1b88c1455bac001454ab7535b3964502526d1c121b

See more details on using hashes here.

File details

Details for the file multireq-0.0.10-py2-none-any.whl.

File metadata

  • Download URL: multireq-0.0.10-py2-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0

File hashes

Hashes for multireq-0.0.10-py2-none-any.whl
Algorithm Hash digest
SHA256 82d532819d0ef78b4d796541ba359a7167581bd22a4bbfbaff06664a7ced2a52
MD5 1740b1caaa7ddb3ab286956c397114d9
BLAKE2b-256 dfc558a453d3f078d578ed38577807bdea9b54a9e54d3b7ad1f111654ba51ffe

See more details on using hashes here.

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