Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽต TikTok Activity Viewer

An interactive and modern viewer to explore your TikTok activity with an elegant dark mode interface.

โœจ Features

๐Ÿ“‘ Tab System

  • โค๏ธ Like List: All videos you've liked
  • โญ Favorite Videos: Your bookmarked favorite videos
  • ๐ŸŽต Favorite Sounds: Saved favorite sounds
  • โœจ Favorite Effects: Saved favorite effects

๐ŸŽฎ Navigation Controls

Keyboard

  • Enter: Load current video/item
  • W or โ†‘: Go to previous item
  • S or โ†“: Go to next item
  • Numbers: Directly input item number

Git pages

https://john00-dev.github.io/tiktok_activity/

Buttons

  • โ–ถ๏ธ Load: Load specified item
  • โฌ†๏ธ Previous: Navigate to previous item
  • โฌ‡๏ธ Next: Navigate to next item
  • ๐Ÿ“‹ Show/Hide Full List: Toggle complete item list

๐Ÿ“‹ List Visualization

Each tab includes a button to view the complete list of items:

  • Videos (Like List and Favorite Videos):

    • Scrollable list with all videos
    • Item number and date
    • "โ–ถ๏ธ View" button that loads video in player
    • Auto-scroll to player on selection
  • Sounds and Effects:

    • Scrollable list with all items
    • Item number and date
    • "๐Ÿ”— Open" button that opens link in new tab

๐Ÿš€ Installation

Prerequisites

  • Local web server or any HTTP server
  • JSON file with your TikTok data

File Structure

project/
C:.
โ”‚   Index.html          #principal HTML
โ”‚   README.md
โ”‚   
โ””โ”€โ”€โ”€json-backend
    โ”‚   README.md
    โ”‚   
    โ”œโ”€โ”€โ”€src
    โ”‚   โ”‚   main.py
    โ”‚   โ”‚   merger.py
    โ”‚   โ”‚   validator.py
    โ”‚   โ”‚
    โ”‚   โ”œโ”€โ”€โ”€api
    โ”‚   โ”‚       merged_tiktok_activity.json #DB
    โ”‚   โ”‚
    โ”‚   โ”œโ”€โ”€โ”€test
    โ”‚   โ”‚       counter.py
    โ”‚   โ”‚
    โ”‚   โ””โ”€โ”€โ”€__pycache__
    โ”‚           merger.cpython-314.pyc
    โ”‚           validator.cpython-314.pyc
    โ”‚
    โ””โ”€โ”€โ”€tiktok_activity_history
        โ”œโ”€โ”€โ”€TikTok_Data_2023-10-25
        โ”‚       user_data_tiktok.json
        โ”‚
        โ”œโ”€โ”€โ”€TikTok_Data_2024-06-30
        โ”‚       user_data_tiktok.json
        โ”‚
        โ””โ”€โ”€โ”€TikTok_Data_2024-12-30
                user_data_tiktok.json

Setup

  1. Place your JSON file at:
   ../json-backend/src/api/merged_tiktok_activity.json
  1. Required JSON structure:
{
  "Activity": {
    "Favorite Effects": {
      "FavoriteEffectsList": [
        {
          "Date": "YYYY-MM-DD HH:mm:ss",
          "EffectLink": "https://m.tiktok.com/share/stickers/detail/..."
        }
      ]
    },
    "Favorite Sounds": {
      "FavoriteSoundList": [
        {
          "Date": "YYYY-MM-DD HH:mm:ss",
          "Link": "https://m.tiktok.com/h5/share/music/..."
        }
      ]
    },
    "Favorite Videos": {
      "FavoriteVideoList": [
        {
          "Date": "YYYY-MM-DD HH:mm:ss",
          "Link": "https://www.tiktokv.com/share/video/..."
        }
      ]
    },
    "Like List": {
      "ItemFavoriteList": [
        {
          "Date": "YYYY-MM-DD HH:mm:ss",
          "Link": "https://www.tiktokv.com/share/video/..."
        }
      ]
    }
  }
}
  1. Start a local server:
   # use live server in vs code
   
  1. Open your browser at http://localhost:5500

๐Ÿ“ฆ Download

Quick Start Package

Download the complete package:

Steps to use:

  1. Download or clone this repository
  2. Place your TikTok activity JSON file in json-backend/src/api/ or merge your TikTok activity JSON with main.py, this create a new merged_tiktok_activity.json
  3. Rename your file to merged_tiktok_activity.json
  4. Open index.html with a local server
  5. Enjoy exploring your TikTok activity!

Alternative: Single File Setup

If you want to use a single HTML file without external dependencies:

  1. Download index.html
  2. Modify line 131 to point to your JSON file location:
   fetch("YOUR_JSON_FILE_PATH_HERE")
  1. Open with a local server

๐ŸŽจ Design

Dark Theme

  • Deep blue/purple gradient background
  • Transparent containers with glassmorphism effects
  • Vibrant gradient buttons with hover effects
  • Custom scrollbars

Responsive

  • Mobile device adaptive
  • Controls reorganize on small screens
  • Videos maintain 9:16 aspect ratio

๐ŸŽฏ Usage

Navigation by Number

  1. Enter the item number you want to view
  2. Press Enter or click โ–ถ๏ธ Load
  3. Navigate with W/S or โ†‘โ†“ arrows

Navigation by List

  1. Click ๐Ÿ“‹ Show/Hide Full List
  2. Visually explore all items
  3. Click โ–ถ๏ธ View or ๐Ÿ”— Open depending on type

Tab Switching

  • Click tabs in the header to switch sections
  • Each tab maintains its independent state

๐Ÿ› ๏ธ Technologies

  • HTML5: Semantic structure
  • CSS3: Animations, gradients, glassmorphism
  • JavaScript (Vanilla): Application logic without frameworks
  • TikTok Embed API: Embedded video player

๐Ÿ“ฑ Compatibility

  • โœ… Chrome/Edge (recommended)
  • โœ… Firefox
  • โœ… Safari
  • โœ… Mobile devices

๐Ÿ”’ Privacy

  • All data is processed locally in your browser
  • No information sent to external servers
  • Videos load directly from TikTok

๐Ÿ› Troubleshooting

JSON doesn't load

  • Verify the file path is correct
  • Make sure to use an HTTP server (not file://)
  • Check browser console for errors

Videos don't play

  • Verify links are valid
  • Some videos may be private or deleted
  • Check that JSON format is correct

Keys don't work

  • Make sure the page is focused
  • W/S work globally
  • โ†‘โ†“ only work when input is focused

๐Ÿ“ License

This project is open source and available under the MIT License.

๐ŸŽ Bonus: Getting Your TikTok Data

To get your TikTok activity data:

  1. Open TikTok app or website
  2. Go to Settings and Privacy โ†’ Account โ†’ Download your data
  3. Select JSON format
  4. Request your data
  5. Wait for TikTok to prepare your file (may take a few days)
  6. Download and extract the ZIP file
  7. Locate user_data.json or similar activity file
  8. Place it in the correct folder and rename if necessary

Made with โค๏ธ to explore your TikTok activity

Releases

Packages

Contributors

Languages