Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载语料的文件名没有格式后缀 #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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