Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xct007/tiktok-scraper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xct007/tiktok-scraper

Tiktok scraper directly to tiktok api

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-21.41%
Maintainers
1
Weekly downloads
 
Created
Source

Tiktok scraper

How to use

1. Install packages
npm install @xct007/tiktok-scraper

or

yarn add @xct007/tiktok-scraper
2. Import packages
  • cjs
const tiktok = require("@xct007/tiktok-scraper");
  • ESM
import tiktok from "@xct007/tiktok-scraper";
3. Example
const tiktok = require("@xct007/tiktok-scraper");

let url = "https://vt.tiktok.com/ZGJBtcsDq/";
tiktok(url).then(async (json) => {
  console.log(json);
});
  • Output
{
  "process_time": 2676,
  "aweme_id": "6981186686579494145",
  "region": "RU",
  "desc": "#GenshinImpact #xiao #геншинимпакт #сяо #fyp #fypシ",
  "author": {
    "uid": "6832340325882987525",
    "unique_id": "monyaxa",
    "nickname": "моняша"
  },
  "duration": 27,
  "download": {
    "nowm": "https://v38.tiktokcdn.com/379359d424fe8c021d335664fd1ddfa6/63595a7b/video/tos/alisg/tos-alisg-pve-0037c001/694bfefef14749e6bd106445647064fd/?a=1180&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2470&bt=1235&cs=0&ds=6&ft=FcAYiNbhVUxwUatptdHOJLO55pRqR0iXXJApQlMyeC_O&mime_type=video_mp4&qs=0&rc=Njw1M2dpNWYzOjU0M2Q7NEBpanhweDY6ZmQ1NjMzODczNEBjMzIuNWE0NmIxMDQxLV9fYSNmbi1icjRfZGVgLS1kMS1zcw%3D%3D&l=202210261003450102450130380C036B0C&btag=80000&cc=f",
    "wm": "https://v38.tiktokcdn.com/e904fff28f5661b97dd632a4c02a055c/63595a7b/video/tos/alisg/tos-alisg-pve-0037c001/a78982b719c44a7b913aa4c80558b779/?a=1180&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2384&bt=1192&cs=0&ds=3&ft=FcAYiNbhVUxwUatptdHOJLO55pRqR0iXXJApQlMyeC_O&mime_type=video_mp4&qs=0&rc=NDo6OztpOmc4MzhnaWllZUBpanhweDY6ZmQ1NjMzODczNEBhMS8xMjNjNTQxL2FiMzBjYSNmbi1icjRfZGVgLS1kMS1zcw%3D%3D&l=202210261003450102450130380C036B0C&btag=80000&cc=f",
    "music": "https://sf16-ies-music-va.tiktokcdn.com/obj/musically-maliva-obj/6955925411251522310.mp3",
    "music_info": {
      "id": 6955925330544627000,
      "title": "original sound - khirq",
      "author": "khira",
      "is_original": false,
      "cover_hd": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/a2c3cf143095a16d08548abe5f75e8bc~c5_1080x1080.webp?x-expires=1666864800&x-signature=NMoNEmfW187fE26N7UBzeYPHtps%3D",
      "cover_large": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/a2c3cf143095a16d08548abe5f75e8bc~c5_1080x1080.webp?x-expires=1666864800&x-signature=NMoNEmfW187fE26N7UBzeYPHtps%3D",
      "cover_medium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/a2c3cf143095a16d08548abe5f75e8bc~c5_720x720.webp?x-expires=1666864800&x-signature=1p3zb65%2F4lDZta%2FNVe%2FcEdOyDXk%3D"
    }
  }
}

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue. Don't forget to give the project a star! Thanks again!

  1. Fork the Repo
  2. Commit your Changes
  3. Push to the Branch
  4. Open a Pull Request

Contact

David - @david.stefen

Keywords

FAQs

Package last updated on 26 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc