Git Product home page Git Product logo

tiktokvideoscraper's Introduction

TikTok Video Scraper w/o watermark

This is the code that follows the tutorial here

Common errors / issues:

  1. There is a TikTok captcha
  • Increase the page timeout, and manually solve the captcha and then let the script run itself
  1. If you get an error during step 4 for downloading the video
  • Make sure to check your cookies / headers

If you get stuck and need help, make sure to join the discord, and drop your question in the questions channel.

tiktokvideoscraper's People

Contributors

codewithvincent1 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

Watchers

 avatar  avatar  avatar

tiktokvideoscraper's Issues

NameError: name 'BeautifulSoup' is not defined

STEP 3: Time to download 177 videos
Downloading video: 0
Downloading video 0 from: https://www.tiktok.com/
STEP 4: Getting the download link
If this step fails, PLEASE read the steps above
Traceback (most recent call last):
  File "c:\Users\doria\OneDrive\Bureau\auto-tiktok\auto.py", line 108, in <module>
    downloadVideo(url, index)
  File "c:\Users\doria\OneDrive\Bureau\auto-tiktok\auto.py", line 52, in downloadVideo
    downloadSoup = BeautifulSoup(response.text, "html.parser")
                   ^^^^^^^^^^^^^
NameError: name 'BeautifulSoup' is not defined``

i have this in the terminal, how can i fix it please ?

error

image
When running it gives this error, do not know how to fix it

javascript error: document.getElementsByClassName(...).forEach is not a function

The script was working for me weeks ago, but now getting the following error:

STEP 1: Open Chrome browser

DevTools listening on ws://127.0.0.1:52364/devtools/browser/4ce50f56-8f18-454a-80e0-2031e7426bec
[44136:53068:0520/005754.306:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[44136:53068:0520/005754.795:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
STEP 2: Scrolling page
Created TensorFlow Lite XNNPACK delegate for CPU.
Traceback (most recent call last):
File "E:\AI PIMP\Scraper\scrape_video.py", line 115, in
urlsToDownload = driver.execute_script(script)
File "C:\Users\Oskar\myenv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 407, in execute_script
return self.execute(command, {"script": script, "args": converted_args})["value"]
File "C:\Users\Oskar\myenv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\Oskar\myenv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: javascript error: document.getElementsByClassName(...).forEach is not a function
(Session info: chrome=125.0.6422.61)
Stacktrace:
GetHandleVerifier [0x00007FF6265A22C2+60002]
(No symbol) [0x00007FF62651CA59]
(No symbol) [0x00007FF6263D7EDA]
(No symbol) [0x00007FF6263DDD0E]
(No symbol) [0x00007FF6263E0988]
(No symbol) [0x00007FF62646C9CB]
(No symbol) [0x00007FF62644C28A]
(No symbol) [0x00007FF62646BCC7]
(No symbol) [0x00007FF62644C033]
(No symbol) [0x00007FF626419657]
(No symbol) [0x00007FF62641A251]
GetHandleVerifier [0x00007FF6268B3E2D+3278285]
GetHandleVerifier [0x00007FF626900190+3590448]
GetHandleVerifier [0x00007FF6268F61D0+3549552]
GetHandleVerifier [0x00007FF626651DE6+779654]
(No symbol) [0x00007FF626527ACF]
(No symbol) [0x00007FF626522EE4]
(No symbol) [0x00007FF626523072]
(No symbol) [0x00007FF626512C4F]
BaseThreadInitThunk [0x00007FFA68D7257D+29]
RtlUserThreadStart [0x00007FFA6A22AA48+40]

HOW

File "f:\files\auto download script\tiktok.py", line 98, in
downloadVideo(video.a["href"], index)
File "f:\files\auto download script\tiktok.py", line 61, in downloadVideo
with open(f"videos/{id}-{videoTitle}.mp4", "wb") as output:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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.