Giter VIP home page Giter VIP logo

tiktokget's People

Contributors

charmparticle avatar upintheairsheep 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

Watchers

 avatar  avatar  avatar  avatar

tiktokget's Issues

Downloads only 30 videos

Hi.
I can see that it has already been discusse,d but that issue was closed with you saying that you should remove windows support.
I am running your script in macos and the same happens for me, regardless of which account i try to download all videos from, only 30 videos are downloaded, counting down from 30 -> 01 (how it names them).

Could it be that Gecko Driver only downloads the first videos that are shown and some kind of "continous scrolling" to load more/all videos are needed to load the complete list?

There are no errors when downloading, but the behavior is the same each time and what makes it even more consistent is that it always starts downloading the video named 30 first, so it is pretty intentional.

support cookies?

some private profile cannot be downloaded. is it posible for the browser to support cookies, so I con donwload private profile that I already followed. thanks

Feature request: Add metadata

Please add a feature to download the metadata JSON, thumbnail(s), and subtitles of the video, check out the code of yt-dlp for it.

tiktokget error - selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status signal

linux, bullseye11

  opts.headless = True
Traceback (most recent call last):
  File "/home/elias/.local/bin/tiktokget", line 49, in <module>
    driver = webdriver.Firefox(options=opts)
  File "/home/elias/.local/lib/python3.9/site-packages/selenium/webdriver/firefox/webdriver.py", line 196, in __init__
    super().__init__(command_executor=executor, options=options, keep_alive=True)
  File "/home/elias/.local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/home/elias/.local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/elias/.local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/home/elias/.local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status signal

Downloads only a few and fails

Error attached below

Traceback (most recent call last):

File "/usr/local/bin/tiktokget", line 98, in <module>
  title = driver.find_element(By.XPATH,"//span[contains(@class, 'SpanText')]").text
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
  return self.execute(Command.FIND_ELEMENT, {
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
  self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
  raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //span[contains(@class, 'SpanText')]

I use this and get error

Installed:
sudo pip3 install tiktokget

Run:
tiktokget -l https://www.tiktok.com/@taichi.zidong
/usr/local/bin/tiktokget:85: DeprecationWarning: headless property is deprecated, instead use add_argument('-headless')
opts.headless = True
Specific exercise Improve symptoms, daily fully- body exercise remove root causes..mp4
Downloading...
ERROR: [tiktok:user] taichi.zidong: taichi.zidong: Failed to parse JSON (caused by JSONDecodeError("Expecting value in '': line 1 column 1 (char 0)")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

yt-dlp -U
Available version: [email protected], Current version: [email protected]
yt-dlp is up to date ([email protected])

Undeclared dependency on sarge

After a fresh install in a venv:

$ tiktokget prozd_tiktok
Traceback (most recent call last):
  File "/home/tomwhoiscontrary/bin/tiktokget", line 8, in <module>
    from sarge import get_stdout
ModuleNotFoundError: No module named 'sarge'

After doing pip install --upgrade sarge, the scripts seems to run fine.

The wheel metadata has requires for yt-dlp, requests, and selenium, so i suspect it just needs one for sarge as well.

help me

when i play ,i have a trouble, can you help me ?

C:\Users\Admin\Downloads\tiktokget-main\tiktokget-main>py tiktokget @led_du_go
Traceback (most recent call last):
File "C:\Users\Admin\Downloads\tiktokget-main\tiktokget-main\tiktokget", line 49, in
driver = webdriver.Firefox(options=opts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 170, in init
RemoteWebDriver.init(
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line

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.