 Scrapy 1.7 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1. Command line tool 31 Scrapy Documentation, Release 1.7.4 3.1.6 Custom project manipulation 54 Chapter 3. Basic concepts Scrapy Documentation, Release 1.7.4 Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] >>>0 码力 | 306 页 | 1.23 MB | 1 年前3 Scrapy 1.7 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1. Command line tool 31 Scrapy Documentation, Release 1.7.4 3.1.6 Custom project manipulation 54 Chapter 3. Basic concepts Scrapy Documentation, Release 1.7.4 Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] >>>0 码力 | 306 页 | 1.23 MB | 1 年前3
 Scrapy 1.8 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] >>>0 码力 | 335 页 | 1.44 MB | 1 年前3 Scrapy 1.8 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] >>>0 码力 | 335 页 | 1.44 MB | 1 年前3
 Scrapy 2.4 Documentationuseful for bug reports. bench • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1. Command line tool 31 Scrapy Documentation, Release 2.4.1 3.1.6 Custom project org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] 30 码力 | 354 页 | 1.39 MB | 1 年前3 Scrapy 2.4 Documentationuseful for bug reports. bench • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1. Command line tool 31 Scrapy Documentation, Release 2.4.1 3.1.6 Custom project org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] 30 码力 | 354 页 | 1.39 MB | 1 年前3
 Scrapy 2.2 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] 30 码力 | 348 页 | 1.35 MB | 1 年前3 Scrapy 2.2 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] 30 码力 | 348 页 | 1.35 MB | 1 年前3
 Scrapy 2.3 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 352 页 | 1.36 MB | 1 年前3 Scrapy 2.3 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 352 页 | 1.36 MB | 1 年前3
 Scrapy 2.1 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] 30 码力 | 342 页 | 1.32 MB | 1 年前3 Scrapy 2.1 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] 30 码力 | 342 页 | 1.32 MB | 1 年前3
 Scrapy 2.0 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 336 页 | 1.31 MB | 1 年前3 Scrapy 2.0 Documentationbench New in version 0.17. • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 336 页 | 1.31 MB | 1 年前3
 Scrapy 1.7 Documentationrules to crawl your websites. Selectors Extract the data from web pages using XPath. Scrapy shell Test your extraction code in an interactive environment. Items Define the data you want to scrape. Item reports. bench New in version 0.17. Syntax: scrapy bench Requires project: no Run a quick benchmark test. Benchmarking. Custom project commands You can also add your custom project commands by using the org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts- with() or contains() are not0 码力 | 391 页 | 598.79 KB | 1 年前3 Scrapy 1.7 Documentationrules to crawl your websites. Selectors Extract the data from web pages using XPath. Scrapy shell Test your extraction code in an interactive environment. Items Define the data you want to scrape. Item reports. bench New in version 0.17. Syntax: scrapy bench Requires project: no Run a quick benchmark test. Benchmarking. Custom project commands You can also add your custom project commands by using the org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts- with() or contains() are not0 码力 | 391 页 | 598.79 KB | 1 年前3
 Scrapy 2.6 Documentationuseful for bug reports. bench • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 384 页 | 1.63 MB | 1 年前3 Scrapy 2.6 Documentationuseful for bug reports. bench • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 384 页 | 1.63 MB | 1 年前3
 Scrapy 2.5 DocumentationDocumentation, Release 2.5.1 bench • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 366 页 | 1.56 MB | 1 年前3 Scrapy 2.5 DocumentationDocumentation, Release 2.5.1 bench • Syntax: scrapy bench • Requires project: no Run a quick benchmark test. Benchmarking. 3.1.6 Custom project commands You can also add your custom project commands by using org/regular-expressions regular expressions set http://exslt.org/sets set manipulation Regular expressions The test() function, for example, can prove quite useful when XPath’s starts-with() or contains() are not sufficient getall() ['link1.html', 'link2.html', 'link3.html', 'link4.html', 'link5.html'] >>> sel.xpath('//li[re:test(@class, "item-\d$")]//@href').getall() ['link1.html', 'link2.html', 'link4.html', 'link5.html'] Warning:0 码力 | 366 页 | 1.56 MB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7














