Scrapy 1.4 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'text': quote.css('span.text::text').extract_first(), Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking class="author">Albert Einstein (about) <div class="tags"> Tags: change0 码力 | 394 页 | 589.10 KB | 1 年前3
Scrapy 1.6 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'text': quote.css('span.text::text').get(), 'author': quote.xpath('span/small/text()') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 295 页 | 1.18 MB | 1 年前3
Scrapy 2.1 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 342 页 | 1.32 MB | 1 年前3
Scrapy 2.2 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 348 页 | 1.35 MB | 1 年前3
Scrapy 2.4 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 354 页 | 1.39 MB | 1 年前3
Scrapy 2.3 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 352 页 | 1.36 MB | 1 年前3
Scrapy 2.0 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 336 页 | 1.31 MB | 1 年前3
Scrapy 1.7 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'text': quote.css('span.text::text').get(), 'author': quote.xpath('span/small/text()') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 306 页 | 1.23 MB | 1 年前3
Scrapy 1.8 Documentation'http://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'text': quote.css('span.text::text').get(), 'author': quote.xpath('span/small/text()') Each quote in http://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Albert Einstein (about) <div class="tags"> Tags: change 0 码力 | 335 页 | 1.44 MB | 1 年前3
Scrapy 2.6 Documentation'https://quotes.toscrape.com/tag/humor/', ] def parse(self, response): for quote in response.css('div.quote'): yield { 'author': quote.xpath('span/small/text()').get(), 'text': quote.css('span.text::text') Each quote in https://quotes.toscrape.com is represented by HTML elements that look like this: <div class="quote"> “The world as we have created it is a process of our thinking. It Release 2.6.3 (continued from previous page) (about) <div class="tags"> Tags: change 0 码力 | 384 页 | 1.63 MB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













