pip3 install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple安装库 scrapy startproject Stocks创建工程 cd Stocks/ scrapy genspider stocks qq.com创建爬虫 东方财富网 + 腾讯证券 stocks.py # -*- coding: utf-8 -*- import scrapy import re class StocksSpider(scrapy.Spider): name = 'stocks' start_urls = ['http://quot