conf_spider.py 686 B

1234567891011
  1. wangye_name = "中国证券监督管理委员会_时政要闻"
  2. headers = {
  3. 'accept': 'text / html, application / xhtml + xml, application / xml;q = 0.9, image / avif, image / webp, image / apng, * / *;q = 0.8, application / signed - exchange;v = b3;q = 0.7',
  4. 'accept - encoding': 'gzip, deflate',
  5. 'accept - language': 'zh - CN, zh;q = 0.9, en;q = 0.8, en - GB;q = 0.7, en - US;q = 0.6',
  6. 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0'
  7. }
  8. urls_template = 'http://www.csrc.gov.cn/csrc/c100027/common_list_{}.shtml'
  9. url = 'http://www.csrc.gov.cn/csrc/c100027/common_list.shtml'