Skip to main content

send bulk requests to a url

Project description

Introduction

Install package

pip install request-url-2023

Example Usage:

from request_url_2023 import send_requests

send_requests.run(url="https://www.baidu.com/")

Params

from request_url_2023 import send_requests

# 总的请求数
# TOTAL_COUNT = 10000
# 线程池数目
# THREAD_NUM = 20
# 每个协程同时发送多少个请求
# COROUTINE_REQUEST_COUNT = 50

send_requests.run(
    url="https://www.baidu.com/",
    TOTAL_COUNT = 1000,
    THREAD_NUM = 20,
    COROUTINE_REQUEST_COUNT = 50
)

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

request_url_2023-1.0.3.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

request_url_2023-1.0.3-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 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