Coupling random user_agent (scrapy_fake_useragent) extension with cfscrape
See original GitHub issueI try to make a scrapy script which use cfscrape
, privoxy
, and scrapy_fake_useragent
, but i have some difficulties to understand how i can pass the random user_agent
generated by scrapy_fake_useragent
extension to your great cfscrape
extension 😃
I crosspost this issue/question on scrapy-fake-useragent
issue and stackOverflow
with more explanation because i think other person can be interested by this coupling :
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
scrapy-fake-useragent and cfscrape cloudfare anti bot library #9
My problem is that cfscrape define a random user_agent from a limited list directly writted in the code (see here ) if no...
Read more >Share USER_AGENT between scrapy_fake_useragent and ...
I'm using cfscrape python extension to bypass cloudfare protection with scrapy and scrapy_fake_useragent to inject random real USER_AGENT ...
Read more >cfscrape - PyPI
cloudflare-scrape. A simple Python module to bypass Cloudflare's anti-bot page (also known as "I'm Under Attack Mode", or IUAM), implemented with Requests.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not the best solution, but it’s work like that :
Thanks @Xonshiz it’s seems this is a good alternative solution, but i need to rewrite all my scrapy code i suppose 😕 And i lost the capacity offered by
scrapy_fake_useragent
. If ask the question to dev of the extension to know if it’s possible to catch the random user_agent value generated before using it into cfscrape on project issue page.