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.6.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

multireq-0.0.6-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multireq-0.0.6.tar.gz
  • Upload date:
  • Size: 43.4 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.6.tar.gz
Algorithm Hash digest
SHA256 590ac5fbd20c3a0e7ee6f073589bb2a7ad8c1bc03f6ff7068653d8ad3f44926f
MD5 0c656761921c41bfcad8d8004c668f03
BLAKE2b-256 c3a7ba6db98da05dd7eabe2e97f5dfeb104ff7fd4b91ac7fcd56a90c86af7cba

See more details on using hashes here.

File details

Details for the file multireq-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: multireq-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 44.2 kB
  • Tags: Python 3
  • 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6644eadbb7589c45b0fad13f781149e9e67c942c35376bc32de6453791da5a23
MD5 a587e5bb67bb409f3f5c2ccaab9c33be
BLAKE2b-256 b4fa1422b3c144b69065bf21e9d8de0a7cc242a4fb7ae3c29e73cdcd6193dd58

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