上传文件至 'dagongPro/spiders'

新增newsid存储功能
This commit is contained in:
link_1999 2022-04-08 22:29:46 +08:00
parent dcae430498
commit 6300044286
1 changed files with 0 additions and 1 deletions

View File

@ -15,7 +15,6 @@ class DagongSpider(scrapy.Spider):
def __init__(self):
self.bro = webdriver.Chrome(executable_path='D:\pythondemo\crawler\chromedriver.exe')
def parse(self, response):
li_list = response.xpath('/html/body/div[2]/div/div[2]/ul[2]/li[2]/div/ul/li')
alist = [8] # [0内地, 2香港, 4两岸, 6国际, 8军事]