-
Notifications
You must be signed in to change notification settings - Fork 4
Scrapy
Mingtao edited this page Oct 8, 2018
·
3 revisions
pip install Scrapy
scrapy startproject tutorial
import scrapy
class ExampleSpider(scrapy.Spider):
name = 'example'
allowed_domains = ['projectcomputing.com']
start_urls = ['http://overproof.projectcomputing.com/showRequest/1538722038978085']
def parse(self, response):
after_correction_list = response.css('td[name="rn"] ::text').extract()
after_correction = ' '.join(after_correction_list)
after_correction = ' '.join(after_correction.split())
print(after_correction)
scrapy crawl example