Member-only story

How to scrape websites like Tiktok, Instagram or Youtube with Python

Manpreet Singh
6 min readJun 3, 2021

--

Welcome back! Web scraping is one of my favorite things to do, it allows us to gain data points that we may not have otherwise gotten, so let me show you how to scrape websites like Tiktok or Youtube very easily with Python. One quick note, almost every tutorial i’ve seen uses random websites that no one really uses, the advantage of pulling data from Tiktok or Youtube (or really any other website like this) is that the data is always updating, this is awesome when doing real time data pulls, with that out of the way let’s get into it!

Basic introduction you could probably skip that I copied from my other article

First things first, we will need to have Python installed, read my article here to make sure you have Python and some IDE installed. Next, I wrote an article on using Selenium in Python, Selenium is a web scraping package that allows us to mimic a web browser using Python, it might be best to read that article for more of an understanding on web scraping, but it’s not a necessity, you can read that article here.

Let’s get started!

Now that we have our Python environment setup, let’s open up a blank Python script. Let’s import the Selenium package that you hopefully preinstalled…

--

--

Manpreet Singh
Manpreet Singh

Responses (1)