Skip to content

Commit

Permalink
Update basicbot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
davidteather authored Dec 23, 2020
1 parent 5a12069 commit b9ca821
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion basicbot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import random
import string
import glob
from TikTokApi import TikTokApi

Expand All @@ -18,9 +19,13 @@ def clearTMP(delpath):

# Vars
count = 30
api = TikTokApi()

verifyFp = "verify_" + ''.join(random.choice(string.letters) for num in range(40))
api = TikTokApi.get_instance(custom_verifyFp=verifyFp)
did = str(random.randint(10000, 999999999))

# I recommend using api = TikTokApi.get_instance(custom_verifyFp=verifyFp, use_test_endpoints=True) instead
# of the following line, but I can't guarantee support for the use_test_endpoints parameter into the future
results = api.trending(count=count, custom_did=did)
prevloops = 0
for res in results:
Expand Down

0 comments on commit b9ca821

Please sign in to comment.