@@ -21,7 +21,8 @@ class KsKeyword:
url = "http://8.217.192.46:8889/crawler/kuai_shou/keyword"
list = []
-
+ if not keyword:
+ return
payload = json.dumps({
"keyword": keyword,
"content_type": content_type,
@@ -13,6 +13,8 @@ class KSLS:
url = "http://8.217.192.46:8889/crawler/kuai_shou/blogger"
next_cursor = ""
try:
+ if not url_id:
for i in range(5):
"account_id": url_id,
@@ -39,7 +39,8 @@ class KS:
pcursor = ""
url = "https://www.kuaishou.com/graphql"
for i in range(3):
cookie = Material.get_cookie_data(feishu_id, cookie_sheet, channel_id)
time.sleep(random.randint(1, 5))