Code Monkey home page Code Monkey logo

Comments (8)

issue-label-bot avatar issue-label-bot commented on August 15, 2024

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.57. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

from tiktok-api.

davidteather avatar davidteather commented on August 15, 2024

Right now the api is broken

from tiktok-api.

davidteather avatar davidteather commented on August 15, 2024

Just released a new update that fixed the video function. You'll have download the latest chromedriver from Google, and include the .exe in your path.

You have to update your TikTokApi version by running

pip install TikTokApi

Then here's the code for the link you provided

from TikTokApi.tiktok import TikTokapi

api = TikTokapi("browsermob-proxy", headless=False)
f = api.get_Video_By_Url("https://www.tiktok.com/@mmjiepai/video/6712998958161087749", return_bytes=1)

with open('test.mp4', 'wb') as filthign:
    filthign.write(f)

This will write the video to test.mp4

from tiktok-api.

RotemAkerman avatar RotemAkerman commented on August 15, 2024

@davidteather I've tried the code above (using the same link) but it just wrote the following JSON into test.mp4:

{"statusCode":200,"contentType":"application/json","content":""}

from tiktok-api.

davidteather avatar davidteather commented on August 15, 2024

@RotemAkerman Apparently it broke during one of the updates. Just uploaded a new PyPi package so just update TikTokApi using pip and it should now work.

Official release release on github will come in a few hours.

V2.3.3 works correctly with getting a video by url

from tiktok-api.

RotemAkerman avatar RotemAkerman commented on August 15, 2024

@davidteather Thanks!
This seems to work now, but video does include the watermark...

from tiktok-api.

RotemAkerman avatar RotemAkerman commented on August 15, 2024

@davidteather BTW: How do I translate video link from
http://vm.tiktok.com/jN55fJ/ -> https://www.tiktok.com/@mmjiepai/video/6712998958161087749

  • using Python

from tiktok-api.

konman1989 avatar konman1989 commented on August 15, 2024

Google

Hi @davidteather , having issues running api.trending(10), it throws a 'selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.' error.

The driver itself is in 'browsermob-proxy' dir. Is there a way to explicitly give it a path?
Thanks

from tiktok-api.

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.