
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
scrapy-proxycrawl-middleware
Advanced tools
Scrapy ProxyCrawl Proxy Middleware: ProxyCrawl interfacing middleware for Scrapy
:warning: IMPORTANT: This package is no longer maintained or supported. For the latest updates, please use our new package at scrapy-crawlbase-middleware.
Processes Scrapy requests using ProxyCrawl services either with Normal or Javascript tokens
Choose a way of installing:
python setup.py install
pip install scrapy-proxycrawl-middleware
Then in your Scrapy settings.py
add the following lines:
# Activate the middleware
PROXYCRAWL_ENABLED = True
# The ProxyCrawl API token you wish to use, either normal of javascript token
PROXYCRAWL_TOKEN = 'your token'
# Enable the middleware
DOWNLOADER_MIDDLEWARES = {
'scrapy_proxycrawl.ProxyCrawlMiddleware': 610
}
Use the scrapy_proxycrawl.ProxyCrawlRequest instead of the scrapy built-in Request. The scrapy_proxycrawl.ProxyCrawlRequest accepts additional arguments, used in Proxy Crawl API:
from scrapy_proxycrawl import ProxyCrawlRequest
class ExampleScraper(Spider):
def start_requests(self):
yield ProxyCrawlRequest(
"http://target-url",
callback=self.parse_result
device='desktop',
country='US',
page_wait=1000,
ajax_wait=True,
dont_filter=True
)
The target url will be replaced with proxy crawl url and parameters will be encoded into the url by the middleware automatically.
If you have questions or need help using the library, please open an issue or contact us.
Copyright 2023 ProxyCrawl
FAQs
Scrapy ProxyCrawl Proxy Middleware: ProxyCrawl interfacing middleware for Scrapy
We found that scrapy-proxycrawl-middleware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.