Scrapy 2.10 Documentationmethod of the Spider. Upon receiv- ing a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 419 页 | 1.73 MB | 1 年前3
Scrapy 2.9 Documentationmethod of the Spider. Upon receiv- ing a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 409 页 | 1.70 MB | 1 年前3
Scrapy 1.6 Documentationmethod of the Spider. Upon receiving a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 295 页 | 1.18 MB | 1 年前3
Scrapy 2.11.1 Documentationmethod of the Spider. Upon receiv- ing a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 425 页 | 1.76 MB | 1 年前3
Scrapy 2.11 Documentationmethod of the Spider. Upon receiv- ing a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 425 页 | 1.76 MB | 1 年前3
Scrapy 2.11.1 Documentationmethod of the Spider. Upon receiv- ing a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 425 页 | 1.79 MB | 1 年前3
Scrapy 1.5 Documentationmethod of the Spider. Upon receiving a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 285 页 | 1.17 MB | 1 年前3
Scrapy 1.2 Documentationmethod of the Spider. Upon receiving a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name xpath() or .css() methods, .re() returns a list of unicode strings. So you can’t construct nested .re() calls. Here’s an example used to extract image names from the HTML code above: >>> response.xpath('//a[contains(@href0 码力 | 266 页 | 1.10 MB | 1 年前3
Scrapy 1.3 Documentationmethod of the Spider. Upon receiving a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. name A string which defines the name xpath() or .css() methods, .re() returns a list of unicode strings. So you can’t construct nested .re() calls. Here’s an example used to extract image names from the HTML code above: >>> response.xpath('//a[contains(@href0 码力 | 272 页 | 1.11 MB | 1 年前3
Scrapy 2.6 Documentationmethod of the Spider. Upon receiv- ing a response for each one, it instantiates Response objects and calls the callback method associated with the request (in this case, the parse method) passing the response default start_requests() implementation which sends requests from the start_urls spider attribute and calls the spider’s method parse for each of the resulting responses. 3.2. Spiders 35 Scrapy Documentation Requests to crawl for this spider. It is called by Scrapy when the spider is opened for scraping. Scrapy calls it only once, so it is safe to implement start_requests() as a generator. The default implementation0 码力 | 384 页 | 1.63 MB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













