Build some slick Streamlit dashboards using TikTok Data and Python.
In this video you’ll learn how to:
1. Build a real time feed from TikTok
2. Preprocess that data using an ETL Pipeline
3. Create a Streamlit dashboard to visualise the data
Get the code:
Chapters:
0:00 – Start
0:14 – Introduction
0:47 – Gameplan
1:51 – Client Conversation 1
2:26 – Tutorial Start
4:36 – Creating a Virtual Environment
7:18 – Installing the TikTok API
10:44 – Setup VS Code
12:28 – Getting Data from TikTok
21:03 – Exporting Data to JSON
26:09 – Client Conversation 2
27:35 – Setting Up Jupyter for Prototyping
32:55 – Loading TikTok Data into Pandas
40:45 – Building an ETL Pipeline
1:00:56 – Viewing Transformed Data in Pandas
1:06:07 – Converting ETL code into a Module
1:12:34 – Exporting Transformed TikTok Data to CSV
1:17:07 – Client Conversation 3
1:18:40 – Setting up Streamlit
1:22:14 – Building Your First Streamlit App
1:27:17 – Adding TikTok Hashtag Search
1:49:17 – Creating Plotly Charts
2:05:30 – Setting app to wide and Creating a sidebar
2:16:01 – Client Conversation 4
2:16:43 – Wrap up
Oh, and don’t forget to connect with me!
LinkedIn:
Facebook:
GitHub:
Patreon:
Join the Discussion on Discord:
Happy coding!
Nick
P.s. Let me know how you go and drop a comment if you need a hand!
thank u for the helpful tutorial !!! is there any other other for download option
Wow thx man. Really great video and liked the format. Combine with the way you explain every details, give other alternatives and explaining the other way to implement the code, somehow gives me insight about real life development and how to nailed it. Really appreciated it 👍
how can I setup Environment on mac I try the code like you but I think it maybe dif command on mac
Nick, I really appreciate the time and effort you put on your videos!
For viewers watching this video in the present, as of now (3/18/2023) the tiktok API is not working, but anyway, the content and information is pretty useful for other projects and api's out there.
On a side note, I am no really sure if you wanted to do the transformation from scratch (learning purposes) but there is a function called json_normalize() which will do these dirty jobs pretty easily.
Cheers to you and any comment or answer is really appreciated
Hi nick, nice video.
Can you help me? because i can´t find "s_v_web_id" in cookies list.
Thanks a lot
Greetings from Colombia
I'm sure it's an exciting tutorial, but it's unwatchable, at least for me. It's so annoying when he repeats the same line of code 4 times. Dude, we have a rewind button. You don't have to show me again how you get the cookie info.
Really loved your tutorial but I'm too late. API is FUBAR so that has made your tutorial a bit redundant. Man, I had such high hopes.
Nick thanks for this video!! The library you have used has stopped working, Any alternate TikTok Scrapers SDK or Libraries for python you would suggest?
How to get packages for youtube ?
How to do this for insta reels
wow you get it thank you nicholas renotte
najiib from somaliland
Hi Nick! this code doesn't work anymore. do you have any idea?
Wow, thank you 😀 That's amazing. I have one question, I am using MacOs and trying to get the cookies over google chrome. First off all do we need a TikTok account to get the data ? and second I don't have s_v_web_id as cookie I have only __tea_cache_tokens_1988, csrf_session_id and msToken. Which one should I use ? Thanks
Thanks alot Nick! Just built my first streamlit app thanks to you 🙂 By the way, you have a cute smile
I have a mac and am very new to terminal. I don't see a command in the description below for mac/linux users?
Great Content Nick! Any idea on how to scrape titkok ads?
Thanks Nick! This is super helpful and so clearly done! Been wanting to have a play with Streamlit and this is a great help.
Wow this is soooooo cool. Im super excited to add this project to my resume and learn some stuff during the process! Thanks
Fat like for that multi thread fix! 🙌
hey, i cant seem to find the "s_v_web_id" cookie
Do u have patreon
thank you so much
I really loved your project, and wanted to try it
The library tiktokApi has been updated
So that is why I couldn’t collect json as in your video
In your video this file was named: export.json
Hello Nick, there are some difficulties, could you help me:
Can you provide which version of tiktokapi did you use in this video?
Some methods (like get_instance, or hashtag full info)
It is supposed to show all info, like hundreds of hashtags
But it only shows two lines
Couldn’t understand 🙁
This guy is better than all my college professors together
Great man ☺️
I'm trying to scrape the tik tok data but an error comes up:'TikTok API ' has no attribute get_instance
how did you get started with the vs code from CMD.I try to write as you did:>code .
but it brings an error please explain to me
Can I do the whole thing in google colab?
great video. But my computer can't find the cookie like in the video
Hey Nick. Great video. Thanks a lot
Thank you for this awesome tutorial
could you share more resources on why asynchronous apps don't work together well
I just started this video and your client requirement segment is super awesome cause it gives us a little insight on how the real-life demands are how data scientists actually work THANKYOU always for your amazing content XDXDXDXD