Git Product home page Git Product logo

Comments (12)

dori921 avatar dori921 commented on June 14, 2024 1

Any update ?

from bulk-tiktoks-downloader.

karim0sec avatar karim0sec commented on June 14, 2024 1

I write a new script to download all videos of a single profile
but it requires plugins to avoid bot detection of TikTok
on this link

https://github.com/Karim-Arab/Tiktok2Youtube-shorts/blob/main/allvideosuser.js

in project location in cmd or terminal :

  • npm install puppeteer puppeteer-extra

  • npm install puppeteer-extra-plugin-stealth puppeteer-extra-plugin-adblocker

after editing the profile URL, now use:

node allvideosuser

Goodluck :)

from bulk-tiktoks-downloader.

karim0sec avatar karim0sec commented on June 14, 2024 1

seems snaptik breaks I update the code with randomize waiting for values and slow it a bit, i can't test due to limited internet where I am it but I am sure it would work fine

from bulk-tiktoks-downloader.

karim0sec avatar karim0sec commented on June 14, 2024

Sorry, I was busy, yeah Updated even after TikTok new implemented bot detection captcha it stops the script at the first page but gladly after it gets URLs, change @Willsmith to user-id and it will work like charm

from bulk-tiktoks-downloader.

dori921 avatar dori921 commented on June 14, 2024

thank you

from bulk-tiktoks-downloader.

Reamasa avatar Reamasa commented on June 14, 2024

Sorry, I was busy, yeah Updated even after TikTok new implemented bot detection captcha it stops the script at the first page but gladly after it gets URLs, change @Willsmith to user-id and it will work like charm

Hi! After change to user-id it still download another videos that not video from our user that we specific. If I want to download videos from a user profile only is it can or not?

from bulk-tiktoks-downloader.

karim0sec avatar karim0sec commented on June 14, 2024

if you visit a profile it only shows videos and views without a description that's why I kept it get user videos from search results with a description maybe not so accurate result

if u want only videos of that user without description u can change

https://www.tiktok.com/@willsmith instead of https://www.tiktok.com/search/video?q=@willsmith

and

div.jsx-1906445185.video-feed.compact > div > div > div > div > a

instead of

div.tiktok-bbkab3-DivContainer > div > div > a

and delete

  for (var i=0;i<2;i++){ //Loop 2 pages
  await page.waitForSelector('button[data-e2e=search-load-more]');
  await page.keyboard.press('PageDown');
  await page.waitForTimeout('300');
  await page.keyboard.press('PageDown');
  await page.waitForTimeout('300');
  await page.keyboard.press('PageDown');
  await page.waitForTimeout('300');
  await page.keyboard.press('PageDown');
  await page.click('button[data-e2e=search-load-more]')
  }

from bulk-tiktoks-downloader.

Reamasa avatar Reamasa commented on June 14, 2024

without a description

That work. Thank.

from bulk-tiktoks-downloader.

Reamasa avatar Reamasa commented on June 14, 2024

if you visit a profile it only shows videos and views without a description that's why I kept it get user videos from search results with a description maybe not so accurate result

if u want only videos of that user without description u can change

https://www.tiktok.com/@willsmith instead of https://www.tiktok.com/search/video?q=@willsmith

and

div.jsx-1906445185.video-feed.compact > div > div > div > div > a

instead of

div.tiktok-bbkab3-DivContainer > div > div > a

and delete

  for (var i=0;i<2;i++){ //Loop 2 pages
  await page.waitForSelector('button[data-e2e=search-load-more]');
  await page.keyboard.press('PageDown');
  await page.waitForTimeout('300');
  await page.keyboard.press('PageDown');
  await page.waitForTimeout('300');
  await page.keyboard.press('PageDown');
  await page.waitForTimeout('300');
  await page.keyboard.press('PageDown');
  await page.click('button[data-e2e=search-load-more]')
  }

Hi! I have encountered​ another issues. When I do that I can download only 6 videos from a profile. What wrong in the script? Thanks for your time.

from bulk-tiktoks-downloader.

Reamasa avatar Reamasa commented on June 14, 2024

I write a new script to download all videos of a single profile but it requires plugins to avoid bot detection of TikTok on this link

https://github.com/Karim-Arab/Tiktok2Youtube-shorts/blob/main/allvideosuser.js

in project location in cmd or terminal :

  • npm install puppeteer puppeteer-extra
  • npm install puppeteer-extra-plugin-stealth puppeteer-extra-plugin-adblocker

after editing the profile URL, now use:

node allvideosuser

Goodluck :)

Thanks for your time.

from bulk-tiktoks-downloader.

Reamasa avatar Reamasa commented on June 14, 2024

I write a new script to download all videos of a single profile but it requires plugins to avoid bot detection of TikTok on this link

https://github.com/Karim-Arab/Tiktok2Youtube-shorts/blob/main/allvideosuser.js

in project location in cmd or terminal :

  • npm install puppeteer puppeteer-extra
  • npm install puppeteer-extra-plugin-stealth puppeteer-extra-plugin-adblocker

after editing the profile URL, now use:

node allvideosuser

Goodluck :)

Hi! I have test your new allvideosuser.js I have download videos from a tiktok profile that have
video maybe 138 But I get only 61 videos that have done for downloaded. What wrong?
Thanks again.

This my output error message:
Done
c:\Users\XXXX\node_modules\puppeteer-core\lib\cjs\puppeteer\common\DOMWorld.js:517
const timeoutError = new Errors_js_1.TimeoutError(waiting for ${options.title} failed: timeout ${options.timeout}ms exceeded);
^

TimeoutError: waiting for XPath //*[@id="download-block"]/div/a[1] failed: timeout 30000ms exceeded
at new WaitTask (c:\Users\XXXX\node_modules\puppeteer-core\lib\cjs\puppeteer\common\DOMWorld.js:517:34)
at DOMWorld.waitForXPath (c:\Users\XXXX\node_modules\puppeteer-core\lib\cjs\puppeteer\common\DOMWorld.js:453:26)
at Frame.waitForXPath (c:\Users\XXXX\node_modules\puppeteer-core\lib\cjs\puppeteer\common\FrameManager.js:948:51)
at Page.waitForXPath (c:\Users\XXXX\node_modules\puppeteer-core\lib\cjs\puppeteer\common\Page.js:2410:33)
at main (c:\Users\XXXX\allvideosuser.js:51:16)
PS C:\Users\XXXX>

from bulk-tiktoks-downloader.

Reamasa avatar Reamasa commented on June 14, 2024

seems snaptik breaks I update the code with randomize waiting for values and slow it a bit, i can't test due to limited internet where I am it but I am sure it would work fine

It work. Thanks.

from bulk-tiktoks-downloader.

Related Issues (20)

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.