Skip to content

Commit

Permalink
Add option to TikTok image downloader for user avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Dec 2, 2024
1 parent 0abe885 commit 6881cba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions processors/visualisation/download_tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class TikTokImageDownloader(BasicProcessor):
"options": {
"thumbnail": "Video Thumbnail",
"music": "Music Thumbnail",
"author_avatar": "User avatar"
},
"default": "thumbnail"
}
Expand Down Expand Up @@ -217,6 +218,8 @@ def process(self):
url_column = "thumbnail_url"
elif self.parameters.get("thumb_type") == "music":
url_column = "music_thumbnail"
elif self.parameters.get("thumb_type") == "author_avatar":
url_column = "author_avatar"
else:
self.dataset.update_status("No image column selected.", is_final=True)
self.dataset.finish(0)
Expand Down

0 comments on commit 6881cba

Please sign in to comment.