Python爬虫入门学习--(向网页提交数据)

来源:互联网 发布:医保报销软件 编辑:程序博客网 时间:2024/09/21 08:59
#-*-coding:utf8-*-import requestsimport re# url = 'https://www.crowdfunder.com/browse/deals'url = 'https://www.crowdfunder.com/browse/deals&template=false'# html = requests.get(url).text# print htmldata = {      'entities_only':'true',      'page':'2'}html_post = requests.post(url,data=data)title = re.findall('"card-title">(.*?)</div>',html_post.text,re.S)for each in title:  print each
0 0
原创粉丝点击