a2 = re.compile(r'<div class="rank_d_b_name" title="(?P<name>.*?)">'
r'<div class="rank_d_b_cate" title="(?P<zz>.*?)">')
多条正则csv没有数据
单条可以显示数据
a2 = re.compile(r'<div class="rank_d_b_name" title="(?P<name>.*?)">')
爬取纵横中文网月票排名小说名和作者
import requests
import re
import csv
url = 'http://www.zongheng.com/rank/details.html?rt=1&d=1&p='
headers = {
"User-Agent": "Mozilla