Request for scrapy to initiate browser fingerprinting
Project description
scrapy-fingerprint
Description
Scrapy - fingerprint is based on [curl_cffi] (https://github.com/yifeikong/curl_cffi), which is used in the packaging of scrapy TLS or JA3 fingerprints of simulated browser requests
Installation
pip install scrapy_fingerprint
Usage
After creating the scrapy project, add the proxy by adding the following configuration in setting.py
# proxy 链接配置
PROXY_HOST = 'http-dynamic-S02.xiaoxiangdaili.com'
PROXY_PORT = 10030
PROXY_USER = '******'
PROXY_PASS = '******'
And you also need to enable FingerprintMiddleware in DOWNLOADER_MIDDLEWARES
:
'scrapy_fingerprint.fingerprintmiddlewares.FingerprintMiddleware': 543,
You can use FingerprintRequest to make a request with a browser fingerprint
yield FingerprintRequest(url=url, callback=self.parse)
You can also add impersonate in FingerprintRequest
yield FingerprintRequest(url=url, callback=self.parse,impersonate="chrome107")
impersonate defaults to random browser fingerprints
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
Built Distribution
File details
Details for the file scrapy_fingerprint-0.1.1.tar.gz
.
File metadata
- Download URL: scrapy_fingerprint-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8e72d53c1558ef4c53d7dd3d60fc301dbae54c69b9d7a1202bd4bd2f9a4afdd |
|
MD5 | eec1330d0eadd80a496d9adc8ec7ab5b |
|
BLAKE2b-256 | 6214cdbd4297f6fd6436740f4652f261d2ea18e1025fa3afbd9363c5869f50bc |
File details
Details for the file scrapy_fingerprint-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: scrapy_fingerprint-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68e8bce06a6131f6fe561dda5b73e025798f5c47d95cb95479700bf3e1f6140 |
|
MD5 | 907c223df78993c981a2f6cb3560477e |
|
BLAKE2b-256 | de47aef6e12a40a2dfc559c34d0886a178fd0330527f9a4fcdba62bdefe86e31 |