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)+'')
评论列表
文章目录