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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: multireq-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 1e03ec912fd0e58f8e53936207e8c3196e1e86c2eecfb842a0f81caccc6dc472
MD5 5f79eba7611663b909e0c8ed0c0492b6
BLAKE2b-256 2bb9ae5246cfb32e989254d0b63aa7d20bd5232b732e963676a07db939225bd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multireq-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd9986a17abfcfc06df2474a08d3f4b9e7ee692c7db1f9144bf6f811d4a6658
MD5 c4c512249189b5b838fd0f4890ce01b6
BLAKE2b-256 14549dc9fa4c8f3a1486935ae4247a135644521913e2973067642f85d3924fe0

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