start.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:taobao 作者: laogewen 项目源码 文件源码
def start(self):
        key=self.textEdit.toPlainText()
        page=self.comboBox.currentText()
        if key:
            os.system('redis-cli flushdb')
            os.system('redis-cli lpush mycrawler:start_urls http://www.taobao.com')
            os.system('scrapy crawl tb -a key='+str(key)+' -a page='+str(page)+'')
            QMessageBox.critical(self,"??","?????")
        else:
            QMessageBox.critical(self,"??","?????????????")
            return
        #os.system('scrapy crawl jd -a key='+str(key)+' -a page='+str(page)+'')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号