I am new in scrapy, I create a sample project in scrapy and run the project. I got an error
AttributeError: 'module' object has no attribute 'OP_SINGLE_ECDH_USE'
Code:
import scrapy
class DmozSpider(scrapy.Spider):
name = "dmoz"
allowed_domains = ["dmoz.org"]
start_urls = ["https://www.grocerygateway.com"]
def parse(self, response):
filename = response.url.split("/")[-2]
with open(filename, 'wb') as f:
f.write(response.body)
Thanks in advance
I had a similar error, found that pyopenssl was not installed correctly
Simply did
sudo apt-get install libssl-dev
then
pip install pyopenssl --upgrade
scrapy scraped again
linux mint 18.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With