Open wanghongenpin opened 4 years ago
url = 'https://home.m.jd.com/myJd/home.action' html = session.get(url, headers=headers).text token = re.findall('str_kenString = \'(.*?)\'', html) token = token[0] if token else None 返回的页面根本没有str_kenString参数