Skip to main content

Quickly fetch multiple pages

Project description

Mucri

Quickly fetch a lot of pages/apis using python asyncio.

Installation

Only python 3.6+

pip isntall mucri

Usage

fetch_pages takes two args:

links : list of links to be fetched (example below) concurrency: how many requests to be send at a time (default 20)

from mucri import fetch_pages

# links can be a single string or a dict with specific instructions
links = [
    "http://meain.github.io",  # Can be just a url
    { "url": "http://somelink" }, # or a dict with url key
    { # for more complex stuff
        "url": "http://fakelink",
        "action": "get", # get | post
        "data": {},
        "headers": {},
        "resp_type": "text", # text | json | image
    }
]

results = fetch_pages(links) # fetches all of them asynchronously

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

mucri-0.0.9.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

mucri-0.0.9-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mucri-0.0.9.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3

File hashes

Hashes for mucri-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e0bb7f3032b1c356105e617974ad115fd5705339b987abf7b093c2358e4cfc4e
MD5 8e509692c2d5063609bf19778b31a8a9
BLAKE2b-256 92daacdc25a08852de079b6b3d15610d1ce663c7134ff4007f17f867ca18d1f9

See more details on using hashes here.

File details

Details for the file mucri-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: mucri-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3

File hashes

Hashes for mucri-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 14f695aacc380725cb03d643c98a9bd5f69ced8475d4ec84cfe7bd9a743d6d12
MD5 607d59fbf507683fb68e956ad4d37574
BLAKE2b-256 1ee5bc5cbd875e8336b336b45e90782bf0ce3b2c55895289547054abb1f4b7d6

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