123456789101112131415161718192021222324 |
- """
- @author: luojunhui
- """
- import json
- import requests
- def wx_search(keys):
- """
- WeChat search
- :param keys:
- :return:
- """
- url = "http://8.217.190.241:8888/crawler/wei_xin/keyword"
- payload = json.dumps({
- "keyword": keys,
- "cursor": "0",
- "content_type": "video"
- })
- headers = {
- 'Content-Type': 'application/json'
- }
- response = requests.request("POST", url, headers=headers, data=payload)
- return response.json()
|