mirror of
https://github.com/bellingcat/tiktok-hashtag-analysis.git
synced 2026-06-08 03:18:31 +03:00
Update file_methods.py
This commit is contained in:
@@ -65,7 +65,6 @@ def download_posts(settings, tag):
|
||||
try:
|
||||
tiktok_command = f"tiktok-scraper hashtag {tag} -t 'json'"
|
||||
result = subprocess.check_output(tiktok_command, shell=True)
|
||||
print(result)
|
||||
new_file = result.decode('utf-8').split()[-1]
|
||||
if ("json" in new_file):
|
||||
os.chdir("../../../tiktok_downloader")
|
||||
|
||||
Reference in New Issue
Block a user