requests 抓取分页评论数据 使用pandas写入csv
import requestsfrom lxml import etreeimport pandas as pdimport numpy as npdef comment_gain(url): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (K...