Skip to main content

scrapy-middlewares

scrapy middlewares

Installation 安装

pip install scrapy_middlewares requests httpx aiohttp

Usage example 使用示例

'DOWNLOADER_MIDDLEWARES': {
    'scrapy_middlewares.req_sync_middleware.ModuleReqMiddleware': 601
},

# module_name:
# 	'httpx', 'requests'

yield ModuleRequest(url=url, callback=self.parse, module_name='requests')
'DOWNLOADER_MIDDLEWARES': {
    'scrapy_middlewares.req_async_middleware.ModuleAsyncReqMiddleware': 601
},

# module_name:
# 	'httpx_async', 'aiohttp'

yield ModuleRequest(url=url, callback=self.parse, module_name='httpx_async')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapy_middlewares-1.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapy_middlewares-1.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file scrapy_middlewares-1.0.1.tar.gz.

File metadata

  • Download URL: scrapy_middlewares-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for scrapy_middlewares-1.0.1.tar.gz
Algorithm Hash digest
SHA256 47df4e5973099a832004e54b27ddd3d40da133bce00386f501e2b86871dcd61d
MD5 e59ee66d4a12580c4374a129df45f1b7
BLAKE2b-256 13f13b13dcaef113fec66f408fda17b51238cd462213654fb4d87f184bc25a40

See more details on using hashes here.

File details

Details for the file scrapy_middlewares-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: scrapy_middlewares-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for scrapy_middlewares-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9866df193551961269e80d9a9cb1de3eb4fb6cff43c16c734dff5e2a871e3731
MD5 257332c831a71ce2b33adf4907066187
BLAKE2b-256 920ab18296c2f57b2f46e46614ad6bc235901211b11aaa6f63cb7d167112b3b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page