Skip to content

Conversation

hailiang-wang
Copy link

@hailiang-wang hailiang-wang commented Jan 29, 2017

cd ChatBotCourse/subtitle/subtitle_crawler
scrapy crawl subtitle

下载的文件没有后缀格式

image

原因是文件下载过程中,进行了redirect,而在item['url']中没有文件格式后缀。

Solution

使用curl命令请求下载资源,添加一个bash script完成下载任务。

@warmheartli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant