Skip to content

How can I fetch the descriptions of trending videos and use them as filenames? #532

Answered by alzeric
Ckatalay asked this question in Q&A
Discussion options

You must be logged in to vote

Descriptions are unreliable from my experience (usually filled with silly emojis or sometimes no description at all). You'd have to write a hefty user sanitization function to make anything from the description usable.

I simply use the video_id as the filename and it works out great. If you want the Descriptions along with the videos I'd log the descriptions along with the video_id in a json log or something along those lines you can use elsewhere.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@davidteather
Comment options

@Ckatalay
Comment options

Answer selected by davidteather
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants