scrapy-selenium-middleware
requirements
- This downloader middleware should be used inside an existing Scrapy project
- Install Firefox and gekodriver on the machine running this middleware
pip
pip install scrapy-selenium-middleware
usage example
for a full scrapy project demo please go here
The middleware receives its settings from scrapy project settings
in your scrapy project settings.py file add the following settings
DOWNLOADER_MIDDLEWARES = {"scrapy_selenium_middleware.SeleniumDownloader":451}
CONCURRENT_REQUESTS = 1 # multiple concurrent browsers are not supported yet
SELENIUM_IS_HEADLESS = False
SELENIUM_PROXY = "http://user:password@my-proxy-server:port" # set to None to not use a proxy
SELENIUM_USER_AGENT = "User-Agent: Mozilla/5.0 (<system-information>) <platform> (<platform-details>) <extensions>"
SELENIUM_REQUEST_RECORD_SCOPE = ["api*"] # a list of regular expression to record the incoming requests by matching the url
SELENIUM_FIREFOX_PROFILE_SETTINGS = {}
SELENIUM_PAGE_LOAD_TIMEOUT = 120
Release files for scrapy-selenium-middleware 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scrapy_selenium_middleware-0.0.5.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scrapy_selenium_middleware-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / scrapy_selenium_middleware-0.0.5.tar.gz
| Download URL | scrapy_selenium_middleware-0.0.5.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c34f20dd918a908a6633645804ce634b27d2ac30498e93dfd9e045d7b74c514
|
|
BLAKE2b-256 checksum How to use checksums |
9709e28b6b1fa43897ad6154bc3ee9e951112a20ef06b0a270517fbbbc0f781a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Release files / scrapy_selenium_middleware-0.0.5-py3-none-any.whl
| Download URL | scrapy_selenium_middleware-0.0.5-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d02f2b675713d24ae52a2b1d8b13ff00bb9f012240d698579066b861e122d610
|
|
BLAKE2b-256 checksum How to use checksums |
d9016e59b04386302011e87bcc33c68e7b2eb0510f04c699bd0377df8e974987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|