python爬虫post

# -*- coding: UTF-8 -*-
import requests
import re
url = 'https://www.crowdfunder.com'

data = {
    'entities_only':'true',
    'page':'1'
}

html_post = requests.post(url,data=data)
title = re.findall('"card-title">(.*?)
',html_post.text,re.S) for each in title: print(each) # html = requests.get(url).text # print(html)

你可能感兴趣的:(python爬虫post)