1234567891011121314151617181920212223242526 |
- """
- @author: luojunhui
- """
- import json
- import time
- import requests
- """
- cate: video_return, video_view, video_rov
- """
- url = "http://localhost:8888/getShareCard"
- body = {
- "videoId": 21059419,
- "ghId": "testId"
- }
- a = time.time()
- header = {
- "Content-Type": "application/json",
- }
- response = requests.post(url, json=body, headers=header, timeout=600)
- b = time.time()
- print(b - a)
- print(json.dumps(response.json(), ensure_ascii=False, indent=4))
|