Skip to main content

CrawlSpider

CrawlSpider is a simple, yet light, spider library.

import asyncio
from CrawlSpider.Utils.SpiderRequest import spiderRequest

async def get(url):
    res = await spiderRequest.get(
        url,
        form='json'
    )
    print(res)

if __name__ == '__main__':
    asyncio.run(get("https://httpbin.org/get"))

响应结果

{
    "status_code": 200,
    "content": {
        "args": {},
        "headers": {
            "Accept": "*/*",
            "Accept-Encoding": "gzip, deflate",
            "Cookie": "_hjAbsoluteSessionInProgress=0; _sp_id.eeee=d332c9c-a67e-4564-80ed-114737664d84",
            "Host": "httpbin.org",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36",
            "X-Amzn-Trace-Id": "Root=1-62c6edbe-3de25d31339352e"
        },
        "origin": "xxx.xxx.xxx.xxx",
        "url": "https://httpbin.org/get"
    }
}

CrawlSpider allows you to crawl data from website extremely easily. There’s no need to manually change proxy and request's headers in crawling data

Installing CrawlSpider and Supported Versions

CrawlSpider is available on PyPI:

$ python -m pip install CrawlSpider

CrawlSpider officially supports Python 3.7+.

Metadata

Release files for CrawlSpider 2.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CrawlSpider 2.0.8
File Size Uploaded Provenance Actions
CrawlSpider-2.0.8.tar.gz 52.0 kB Without provenance Details for CrawlSpider-2.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CrawlSpider 2.0.8
File Interpreter ABI Platform Actions
CrawlSpider-2.0.8-py3-none-any.whl Python 3 none any Details for CrawlSpider-2.0.8-py3-none-any.whl

Total release size: 122.8 kB

Release files / CrawlSpider-2.0.8.tar.gz

Download URL CrawlSpider-2.0.8.tar.gz
Size 52.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f5f0c4df25a02f9f24db1b310e745dd829c6109ca8eb70c8785a5ee25946d56a
BLAKE2b-256 checksum
How to use checksums
99d76bd954a8a5d46d53cc91b576946467288175c137f10d1628080c78681473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.5

Release files / CrawlSpider-2.0.8-py3-none-any.whl

Download URL CrawlSpider-2.0.8-py3-none-any.whl
Size 70.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
758b378a789bd55552b2a036b78610203062a964d445066a9fcd2a8aa97d1462
BLAKE2b-256 checksum
How to use checksums
51f591b079727477d6492f514eb77cc9024bdda8716d18fb4f229691abcb408a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.5

Security for CrawlSpider 2.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page