I'm a novice in scrapy and I have trouble. When scrapy make request downloading from:
I get an error:
twisted.python.failure.Failure exceptions.ValueError: invalid hostname: r2---sn-ug5onuxaxjvh-n8vs.c.pack.google.com
How to solve this problem?
You need to put http address in inverted comma . As mentioned here for linux you can put address in single inverted commas '', but for windows users "" might work.
On Windows you must use double inverted quotes ("url-path") instead of single inverted quote('url-path').
https://doc.scrapy.org/en/latest/intro/tutorial.html#extracting-data
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.