Closed yilu1015 closed 4 years ago
I think I found the issue: when I removed RANDOM_UA_TYPE = 'mobile'
from settings.py
, it worked. BUT, what is wrong with my parameter?
With 1.3.0 and above there is now more control over the user agent providers and fallback options. Please check it out.
I had a successful pip installation. I put the correct configuration code in the
SETTINGS.py
for the global project. I thought it was as easy as that. But when I asked myscrapy shell
, it told me that I am still, yours sincerely,'Scrapy/2.1.0 (+https://scrapy.org)'}
.Is there anything I am missing here? Relevant sections of my debugging code are shown as below.