Member-only story

How To Scrape TikTok Likes Using Python! (No API)

Manpreet Singh
5 min readJan 13, 2021

--

Welcome back! As you know TikTok is an insanely popular social media platform right now, so let’s scrape some data from it! In this use case, we’re going to be scraping the amount of likes from a single TikTok video. In later articles i’ll show you how to scrape entire videos in someones profile for likes, comments, shares, even the songs they use, but we have to crawl before we can walk, so let’s get started!

Basic introduction you could probably skip

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 a 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 the environment setup, we want to open up a blank python script. We then want to install the Selenium package using “pip install selenium” or “pip3 install selenium” or any other method you install Python packages in your IDE. Next, we want to go ahead and import the following modules into our Python script:

--

--

Manpreet Singh
Manpreet Singh

Responses (1)