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

Uploaded Source

Built Distribution

multireq-0.0.9-py2-none-any.whl (45.0 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: multireq-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 430e7ac6195b51ad0b76159765262ff67cf3194a8049b93c3abab4125c87a834
MD5 9a7d816e66970a590e8a48d7aeb74843
BLAKE2b-256 35d04117d1affa8e24551f17a8d4b681309fe0f278ba2f770e723ff09985f079

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multireq-0.0.9-py2-none-any.whl
  • Upload date:
  • Size: 45.0 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.9-py2-none-any.whl
Algorithm Hash digest
SHA256 0f9331dcd18fbb7b41aefa17200a71e1f5c1ffa9e8fa2aae669de273251d0401
MD5 35170b092055612097ef027f7676c318
BLAKE2b-256 823807293f843a70493a202da88d7195325ddc676b86724adfef24d9231c60e1

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