Scrapy Crawl site displays Filtered offsite request to error

Source: Internet
Author: User

Portal: http://blog.csdn.net/feifly329/article/details/49702063

Cannot crawl when crawling a Web site picture.

To set the logging level in the setting.py file

Log_level= ' DEBUG '

log_file = ' Log.txt '

View Log Discovery Report

2017-08-26 15:00:45 [scrapy] debug:filtered offsite request to ' movie.mtime.com ': <get http://movie.mtime.com /12231/posters_and_images/>

This log is a little strange. Decisive internet Baidu, find the answer

The official explanation for this is that you want the address of the request and the conflict in the Allow_domain (my allow_domains=["http://www.mtime.com"), which is filtered out. You can deactivate the filter function.

Yield Request (URL, Callback=self.parse_item, dont_filter=true)

Scrapy Crawl site displays Filtered offsite request to error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.