2019年11月30日

python session保持登录,新增地址,并删除,由观察可知,address_id决定删除的内容;

摘要: import requests,reheaders={"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/5 阅读全文

posted @ 2019-11-30 11:32 星空6 阅读(407) 评论(0) 推荐(0)

python 正则表达式提取返回内容

摘要: import re re.findall(' <input name="address_id" type="hidden" value="(.*?)" />',neww.content.decode("utf-8")) #返回的是一个列表,使用re.match匹配不到内容;re.findall是匹配 阅读全文

posted @ 2019-11-30 11:30 星空6 阅读(3970) 评论(0) 推荐(0)

导航