The problem is with DNS nameserver, I got this error while using ubuntu with scrapy to scrape quotes.to.scrape.com.
I visited "/etc/resolv.conf" path through ubuntu terminal and then updated my nameserver to 8.8.8.8 and saved.
Then I was able to scrape the data.
If you're not using ubuntu, try changing your nameserver for once.