Skip to content

Commit 8ed38db

Browse files
committed
replace the static session id with a random uuid string
1 parent 5cc9bd9 commit 8ed38db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tiktok-scraper/tiktok.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def build_api_url(cursor: int = 0) -> str:
371371
current_page = 0
372372

373373
# Create a session to maintain cookies
374-
session_id = "tiktok_channel_session"
374+
session_id = session_id = str(uuid.uuid4().hex)
375375
log.info(f"starting video fetch loop, max_pages={max_pages}")
376376

377377
while has_more and current_page < max_pages:

0 commit comments

Comments
 (0)