Coder Social home page Coder Social logo

abdelyouni / js-tiktok-downloader Goto Github PK

View Code? Open in Web Editor NEW
49.0 2.0 20.0 16 KB

Download TikTok Video or Music & get all relative meta infos using only JavaScript.

JavaScript 46.89% HTML 53.11%
tiktok tiktok-api tiktok-scraper tiktok-downloader js-library download-video downloader javascript json js-api

js-tiktok-downloader's Introduction

JS TikTok Downloader

Download TikTok Video or Music & get all relative meta infos using only JavaScript.

Supported links :

Basic Demo

TikTok Video & Music Downloader with only Javascript

Example

Basic usage :
//Import the class
<script src="src/tiktok.class.js"></script>

<script>
const TikTok = new JSTikTok('TIKTOK_VIDEO_URL');
TikTok.get().then(function(){
	//Log the video title
	console.log(TikTok.datas.video.title);
	
	//Start download
	TikTok.video_download();
});
</script>

Force Download

Force Download Video :

Start video download :

const TikTok = new JSTikTok('TIKTOK_VIDEO_URL');

TikTok.get().then(function(){

	TikTok.video_download();
	
});
Force Download Music :

Start music download :

const TikTok = new JSTikTok('TIKTOK_VIDEO_URL');

TikTok.get().then(function(){

	TikTok.music_download();

});

Properties

Video Infos

Name Property
Video ID TikTok.datas.video.id
Video Title TikTok.datas.video.title
Video Keywords TikTok.datas.video.keywords
Video Description TikTok.datas.video.Description
Video Height TikTok.datas.video.height
Video Duration (in secondes) TikTok.datas.video.duration
Video Resolution TikTok.datas.video.sizeFormat
Video Cover TikTok.datas.video.cover
Video Animated Cover TikTok.datas.video.animatedCover
Video Likes Count TikTok.datas.video.likes
Video Shares Count TikTok.datas.video.shares
Video Comments Count TikTok.datas.video.comments
Video Vues Count TikTok.datas.video.vues
Video Original Url TikTok.datas.video.original_url
Video Download Url TikTok.datas.video.download_url

Music Infos

Name Parametre
Music ID TikTok.datas.music.id
music Title TikTok.datas.music.title
Large size Cover TikTok.datas.music.cover_large
Medium size Cover TikTok.datas.music.cover_medium
Small size Cover TikTok.datas.music.cover_small
Singer (Artist) TikTok.datas.music.artist
Album name TikTok.datas.music.album
Duration TikTok.datas.music.duration
Stream URL TikTok.datas.music.url
Download URL TikTok.datas.music.download_url

Author Infos

Name Parametre
Author ID TikTok.datas.author.id
Unique ID TikTok.datas.author.uniqueId
Username TikTok.datas.author.username
Large size Avatar TikTok.datas.author.avatar_large
Medium size Avatar TikTok.datas.author.avatar_medium
Small size Avatar TikTok.datas.author.avatar_small
Signature TikTok.datas.author.signature
SignUp date TikTok.datas.author.createDate
Is the profile verified ? TikTok.datas.author.isVerified
Followers Count TikTok.datas.author.followers
Followings Count TikTok.datas.author.followings
Likes recieved Count TikTok.datas.author.hearts
Likes given Count TikTok.datas.author.diggCount
Total Videos TikTok.datas.author.totalVideos

Php Version

TikGet - TikTok video downloader php class

License

(The MIT License)

Copyright (c) 2020 Abdel Youni

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

js-tiktok-downloader's People

Contributors

abdelyouni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

js-tiktok-downloader's Issues

Returns an error

tiktok.class.js
line 70: tiktok.class.js:70 Uncaught (in promise) TypeError: Cannot read property 'title' of undefined
at JSTikTok.get (tiktok.class.js:70)

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.