Update file_methods.py

This commit is contained in:
johannawild
2022-05-04 17:11:01 +02:00
committed by GitHub
parent 1a96807d60
commit feb827d317

View File

@@ -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")