Skip to main content

scrapy middleware

Project description

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')

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapy_middlewares-1.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0

File hashes

Hashes for scrapy_middlewares-1.0.2.tar.gz
Algorithm Hash digest
SHA256 41fab848a132d5b994085517229b4fb9796c3285d5ec6a717892063a65742413
MD5 079fed421c082b9001ba4dd3c262b234
BLAKE2b-256 af147f7e7fae477eeee88b794f72d5ee5212e33d771a28f5f3ed078b7b860215

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scrapy_middlewares-1.0.2-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.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0

File hashes

Hashes for scrapy_middlewares-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 46adb4ed2dd6a05ed421a7c63554cea681573ab842836dc02091708704a76ed4
MD5 9e407c814f328e65af44f64d108377d8
BLAKE2b-256 b1446c6a5f28824dfe0b379fee3373092f808896b91142e5bd7de19d02dbc801

See more details on using hashes here.

Supported by

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