Closed LoyAngel closed 8 months ago
By default you get Scrapy's user agent and it seems like the site does not like that. You can verify it by requesting https://httpbin.org/headers. See the section about the user agent header in the docs.
The problem has been successfully resolved. Thank you very, very much!!!
Thank you, buddy, for your help. I really appreciate it.
Hello,
I'm experiencing an inconsistency between scrapy_playwright and playwright when accessing web pages. While I can access web pages without any issues using playwright directly, I encounter a problem when using the scrapy_playwright framework. The web page detects a lower browser version and triggers a browser version warning. I would like to understand the difference between the two approaches that could be causing this behavior. I have provided details of my environment setup and the source code for two separate tests below:
Environment Setup:
Using Twitter for tesing below.
Source Code for Test 1 (using playwright directly):
Result:
Source Code for Test 2 (using scrapy_playwright):
Result:
I have compared the two test cases and cannot identify any significant differences that could explain this inconsistency. Therefore, I would appreciate any insights or guidance on why this discrepancy is occurring.
Thank you for any help!