您的位置:首页 > 编程语言 > Python开发

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

2017-02-09 16:15 741 查看
#-*-coding:utf8-*-

import requests
import re
# url = 'https://www.crowdfunder.com/browse/deals'
url = 'https://www.crowdfunder.com/browse/deals&template=false'

# html = requests.get(url).text
# print html

data = {
'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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐