Giter VIP home page Giter VIP logo

tiktok-src's Introduction

tiktok-src

Tiktok downloader & auto upload to reels facebook (with puppeteer).

Install

Access facebook web (please login first)

Export your cookies using the extension "Export cookies JSON file for Puppeteer"

Clone this repo: https://github.com/wahdalo/tiktok-src

Open directory from this repo

replace the cookies.json file with the exported file from extension

install module using command "npm install"

Note: Input link tiktok like here

image

Telegram Bot feature (Optional)

To connect to Telegram Bot chat, you must first create a bot in "BotFather".

then copy the token from BotFather into the config.json file

run the bot in the terminal with the command "node telebot.js"

paste your tiktok video url into the telegram bot that you have created.

image

tiktok-src's People

Contributors

dinarsanjaya avatar fdciabdul avatar wahdalo 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  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  avatar  avatar

Watchers

 avatar  avatar  avatar

tiktok-src's Issues

TypeError: Cannot read properties of undefined (reading 'click')

Terjadi saat setelah download video lalu popup browser

[14:10:59] INFO: Session ditemukan, mencoba akses Facebook...
[14:11:02] Berhasil membuka fb
[14:11:02] TypeError: Cannot read properties of undefined (reading 'click')
[14:11:05] Berhasil membuka fb
[14:11:05] TypeError: Cannot read properties of undefined (reading 'click')
file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51
            this.#timeoutError = new TimeoutError(opts.message);
                                 ^

TimeoutError: Waiting for `FileChooser` failed: 30000ms exceeded
    at new Deferred (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51:34)
    at Deferred.create (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:13:16)
    at CdpPage.waitForFileChooser (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:353:35)
    at file:///C:/Users/eXtazzy/Documents/tiktok-src/lib/browserHandler.js:74:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

undefined (reading 'video') di ubuntu

TypeError: Cannot read properties of undefined (reading 'video')

at downloadAndUpload (file:///root/tiktok-src/index.js:13:33)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

node version: 20.11.1
npm version: 10.2.4

Error Page is not a function

[00:57:38] INFO: Session ditemukan, mencoba akses Facebook...
[00:57:42] Berhasil membuka fb
[00:57:42] TypeError: page.$x is not a function

URL API tidak bisa menampilkan Link HD Tiktok Video

Meta data Video yang di Download setelah dicek menghasilkan

codec_name: 'h264',
codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
codec_type: 'video',
width: 576,
height: 1024,
coded_width: 576,
coded_height: 1024,
has_b_frames: 2,
bits_per_raw_sample: '8',

kesimpulan resolusi video yang dihasilkan dari link video dari API tiktok :
SD (Standard Definition) | 480p | 4:3 | 640 x 480

apakah ada update lagi agar resolusi video minimal bisa menjadi :
HD (High Definition) | 720p | 16:9 | 1280 x 720

thanks

default tag

bang request feature buat ngasih default caption atau default tags dong.
jadi selain tag atau caption dari video asli, kita bisa juga tambahin template default tag atau caption dari kita.

Saya coba Install di PC, Tapi ada masalah

Pas saya coba, saya jalankan node index.js dan memasukkan Link nya
Saya coba viar terminal, error nya skipped

D:\My Projects\Tiktok SRC\tiktok-src>node index.js
Do you want to enter a single URL or a list of URLs? (single/list): single
Enter the TikTok URL: https://vt.tiktok.com/ZSFkUFNTh/
[ 7339720260280536326 already downloaded! ] ===== [skipped]

Kebetulan udah saya kaitkan dnegan Bot tele, saya coba via telegram

[bot.info] bot started
https://vt.tiktok.com/ZSFkU8N9X/
[ Proses Download ] [<<<<<<<<<<<<<<<<<<<<<<<<<<] 100% downloaded in 0.9s
[10:07:19] INFO: Session ditemukan, mencoba akses Facebook...
[10:07:23] Berhasil membuka fb
[10:07:53] TimeoutError: Waiting for FileChooser failed: 30000ms exceeded

Oh iya, pas saya jalankan perintah, Browser Chrome di PC saya terbuka sendiri, tapi yang terbuka adalah jendela baru dan bukan chrome yang saya gunakan untuk login Facebook, kira-kira apa masalahnya bang? Terimakasih

error bang, rugi dong

[03:04:27] INFO: Session ditemukan, mencoba akses Facebook...
[03:04:34] Berhasil membuka fb
[03:04:34] TypeError: page.$x is not a function

Udah kedownload tapi ngak mau upload

[ Proses Download ] [<<<<<<<<<<<<<<<<<<<<<<<<<<] 100% downloaded in 1.2s
[09:56:39] INFO: Session ditemukan, mencoba akses Facebook...
[09:56:42] Berhasil membuka fb
[09:56:42] TypeError: Cannot read properties of undefined (reading 'click')

kek gini kasusnya bang kira2 gimana

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.