Coder Social home page Coder Social logo

tiktok-scrapper's Introduction

TikTok Scraper

This Python script uses Selenium to scrape data from TikTok videos and saves the data to a CSV file.

Setup

  1. Install Python 3.
  2. Install the required packages by running pip install selenium pandas.
  3. Download and install the appropriate version of the ChromeDriver for your Chrome browser: https://sites.google.com/a/chromium.org/chromedriver/downloads
  4. Update the driver_path variable in the script to point to the location of the ChromeDriver on your system.

Usage

  1. Run the script by running python tiktok_scraper.py in the terminal.
  2. Enter a search query when prompted.
  3. The script will scrape the data for all the search results and save it to a CSV file named tiktok_data.csv.

Data Scraped

The following data is scraped from each TikTok video:

  • Video description
  • Number of likes
  • Number of comments
  • User profile information (username, nickname, followers, following, likes)

Example Output

Alt Text

Contact Me

Upwork Icon Email Icon Discord Icon Skype Icon LinkedIn Icon
View my Upwork profile Send me an email
[email protected]
Chat on discord
shz#1259
Chat with me on Skype
live:.cid.d443850fdc6504ea
Connect with me on LinkedIn

Disclaimer

This script is intended for educational purposes only. Use of this script may violate TikTok's terms of service. Use at your own risk.

tiktok-scrapper's People

Contributors

shahrozatiq avatar shoaibatiq avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.