jupyter-naas / awesome-notebooks

A powerful data & AI notebook templates catalog: prompts, plugins, models, workflow automation, analytics, code snippets - following the IMO framework to be searchable and reusable in any context.
https://naas.ai/search
BSD 3-Clause "New" or "Revised" License
2.65k stars 446 forks source link

feat: tiktok get liked videos #2545

Closed alexnodeland closed 2 months ago

alexnodeland commented 3 months ago

Fixes

This PR is resultant from DM conversation with @jravenel about new TikTok notebooks

What does this PR do?

Provides notebooks for gathering a list of liked TikTok videos of a given user, and a notebook which returns that list along with transcriptions of the videos.

FlorentLvr commented 2 months ago

Hey @alexnodeland ! I managed to run your template on my local machine, but I encountered an issue with TikTok when trying to access 'liked' videos. I assume I need to log in to bypass TikTok's security check, correct? Is there a way for me to input my username and password?

image
alexnodeland commented 2 months ago

@FlorentLvr this is expected behavior, as the selenium crawler that gathers the liked videos does not authenticate, therefore it would only work on pages that can be accessed without logging in.

To address this, and make it work for pages that you must be logged in to see, I can add a module to the Selenium crawler to prompt the user to log in, or I can add a section for the user to input their cookie information manually.

What are your thoughts on this?