فهرست منبع

bug fix
single_video_deal.py
修改封面·

罗俊辉 11 ماه پیش
والد
کامیت
f404c07cfb
5فایلهای تغییر یافته به همراه8 افزوده شده و 21 حذف شده
  1. 1 1
      deal/single_video_deal.py
  2. 0 14
      task/wx_search_task.py
  3. 1 0
      test/mysql.py
  4. 1 1
      test/shareCard_dev.py
  5. 5 5
      test/videos_dev.py

+ 1 - 1
deal/single_video_deal.py

@@ -43,7 +43,7 @@ class SingleVideo(object):
             video_url = response['videoPath']
             publish_time = response['gmtCreateTimestamp']
             # user_id = response['user']['uid']
-            cover = response['coverImg']['coverImgPath']
+            cover = response['shareImgPath']
             result = {
                 "return": None,
                 "rov": None,

+ 0 - 14
task/wx_search_task.py

@@ -96,19 +96,5 @@ class wxGenerateTask(object):
         return response.json()
 
 
-if __name__ == '__main__':
-    wgt = wxGenerateTask(mysql_client="client")
-    text = wgt.get_article_text("https://mp.weixin.qq.com/s/8lk6A3NuGduVb4N6uUaBNg")
-    img_list = text['data']['data']['image_url_list']
-    img_list = [i['image_url'] for i in img_list]
-    cover = img_list[0]
-    title = text['data']['data']['title']
-    res = {
-        "text": text['data']['data']['body_text'],
-        "title": title,
-        "cover": cover,
-        "img_list": img_list
-    }
-    print(json.dumps(res, ensure_ascii=False))
 
 

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
test/mysql.py


+ 1 - 1
test/shareCard_dev.py

@@ -9,7 +9,7 @@ import requests
 cate: video_return, video_view, video_rov
 """
 
-url = "http://localhost:8888/getShareCard"
+url = "http://47.99.132.47:8888/getShareCard"
 
 body = {
     "videoId": 21059419,

+ 5 - 5
test/videos_dev.py

@@ -14,9 +14,9 @@ url = "http://47.99.132.47:8888/videos"
 
 body = {
     "cate": "video_return",
-    "start_date": "2024-01-01",
-    "end_date": "2024-07-06",
-    "topN": 200
+    "start_date": "2024-07-10",
+    "end_date": "2024-07-11",
+    "topN": 500
 }
 a = time.time()
 header = {
@@ -28,7 +28,7 @@ b = time.time()
 print(b - a)
 print(len(response.json()['data']))
 for i in response.json()['data']:
-    print(i)
-    # print(i['title'])
+    # print(i)
+    print(i['title'])
     # print(i['video_url'])
     # print("\n")

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است