url = '
http://qun.qq.com/cgi-bin/group_search/pc_group_search'headers = {
'Host': '
qun.qq.com',
# 'Origin': '
http://find.qq.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) QQ/9.0.5.23816 Chrome/43.0.2357.134 Safari/537.36 QBCore/3.43.915.400 QQBrowser/9.0.2524.400',
'Referer': '
http://find.qq.com/index.html?version=1&im_version=5587&width=910&height=610&search_target=0',
'Cookie': 'RK=YLIxpt7REk; pac_uid=1_873103889; pt2gguin=o0873103889; ptcz=d0740fb2969aed4db7ed5e45a4829fe21ea4920619e8f10b7d23ba3f3b07b270; pgv_info=ssid=s8595310324; pgv_pvid=976062120; p_skey=6mM1ueYPRqoXMRv9xzGuVYoxuLidDn4stptQXD-tfV4_; p_uin=o873103889; uin=o873103889; skey=Z62ZKb5JUl',
}
data = {
'k': '%E4%BA%A4%E5%8F%8B',
'n': '8',
'st': '1',
'iso': '1',
'src': '1',
'v': '5587',
'bkn': '511199662',
'isRecommend': 'false',
'city_id': '0',
'from': '1',
'newSearch': 'true',
'keyword': '%E8%89%BE%E6%96%AF%E5%A5%A5%E7%89%B9%E6%9B%BC',
'sort': '0',
'wantnum': '24',
'page': '0',
'ldw': '511199662'
}
res =
requests.post(url=url, headers=headers, data=data)
time.sleep(3)
print(res.text)