Scrapy下载文件问题

时间:2018-10-22 02:47:55

标签: python file web-scraping scrapy pipeline

  

我正在下载抓取文件,并且我有这样的链接

b4e4fc66a85960518e68cad894faf6d2edca4710.aspx?id=1264072

  

我用了scrapy,但返回了错误

Traceback (most recent call last):
  File "C:\Users\SHAHRUKH\TurkeyScraper\venv\lib\site-packages\scrapy\pipelines\files.py", line 401, in media_downloaded

**checksum = self.file_downloaded(response, request, info)**

  File "C:\Users\SHAHRUKH\TurkeyScraper\venv\lib\site-packages\scrapy\pipelines\files.py", line 434, in file_downloaded

**self.store.persist_file(path, buf, info)**



  File "C:\Users\SHAHRUKH\TurkeyScraper\venv\lib\site-packages\scrapy\pipelines\files.py", line 54, in persist_file

    **with open(absolute_path, 'wb') as f:**


OSError: [Errno 22] Invalid argument: 'files\\full\\b4e4fc66a85960518e68cad894faf6d2edca4710.aspx?id=1264072'

0 个答案:

没有答案