diff --git a/import_data/ai_keyword_insert_02.py b/import_data/ai_keyword_insert_02.py index df2062f..a1e6a79 100644 --- a/import_data/ai_keyword_insert_02.py +++ b/import_data/ai_keyword_insert_02.py @@ -154,12 +154,12 @@ for i, line in enumerate(lines): bulk_data.append(data) bulk_count += 1 - if bulk_data.__len__() > 10: + if bulk_data.__len__() > 500: print("=" * 30) print("count " + str(count)) payload = json.dumps(bulk_data, cls=JSONEncoder) # Works! response = requests.request("POST", url, headers=headers, data=payload) - print(response.text) + print(response) bulk_data = [] bulk_count = 1 @@ -168,7 +168,7 @@ if bulk_data.__len__() > 0: print(bulk_count) payload = json.dumps(bulk_data, cls=JSONEncoder) # Works! response = requests.request("POST", url, headers=headers, data=payload) - print(response.text) + print(response) # print(len(aikeis)) # address2 = os.getcwd()