How To Pull TikTok Following Count From Any User Using Python!

Manpreet Singh
5 min readJan 20, 2021

As you know, TikTok is an awesome social media platform. I’ve made several different tutorials on how to scrape tons of data points from TikTok, and now i’ll show you how to scrape any user’s follower count from their profile page, let’s begin!

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 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!

First off, here is the entire code we’ll use in this project, i’ll explain this code in detail throughout the article but in case you just want to get the code first here ya go:

#IMPORT THESE PACKAGES
import selenium
from selenium import webdriver
#OPTIONAL PACKAGE, BUY MAYBE NEEDED
from webdriver_manager.chrome import ChromeDriverManager

#THIS INITIALIZES THE DRIVER (AKA THE WEB BROWSER)
driver = webdriver.Chrome(ChromeDriverManager().install())

#THIS PRETTY MUCH TELLS THE WEB BROWSER WHICH WEBSITE TO GO TO
driver.get('https://www.tiktok.com/@gordonramsayofficial?lang=en')

#THIS IS THE…

--

--