GithubHelp home page GithubHelp logo

Comments (10)

demon071 avatar demon071 commented on May 14, 2024 1

ok i will check on colab

from tiktok-api-python.

demon071 avatar demon071 commented on May 14, 2024

thanks for the update, i already test it but didn't work so thought it's still under progress.... using any example like user feed example this error happen

`ModuleNotFoundError Traceback (most recent call last)

in () ----> 1 from TiktokApi import * 2 3 Api = Tiktok() 4 5 # nhập tên người dùng

1 frames

/content/TiktokApi/api.py in () 8 import pickle 9 from urllib.parse import urlencode, quote ---> 10 from .browser import Browser 11 from .ultis import set_url, get_param_url 12 from .encryption import get_tt_param

ModuleNotFoundError: No module named 'TiktokApi.browser'`

i am using google colab, any help will be appreciated

you need all the modules for it to work, I've only tested it on Windows

from tiktok-api-python.

lazezo2 avatar lazezo2 commented on May 14, 2024

is there any work around to make it work in google colab?
may be using chromium instead of browser or passing tiktok cookies manually to tiktok-api?

`# install chromium, its driver, and selenium
!apt-get update
!apt install chromium-chromedriver
!cp /usr/lib/chromium-browser/chromedriver /usr/bin
!pip install selenium

set options to be headless, ..

from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')

open it, go to a website, and get results

wd = webdriver.Chrome('chromedriver',options=options)
wd.get("https://www.website.com")
print(wd.page_source) # results`

from tiktok-api-python.

demon071 avatar demon071 commented on May 14, 2024

for it to work on Colab i think need to use requests and some method of getting datapost encoding

from tiktok-api-python.

lazezo2 avatar lazezo2 commented on May 14, 2024

can you give me an example?

from tiktok-api-python.

lazezo2 avatar lazezo2 commented on May 14, 2024

can you please mange it to work with google colab

  • browser..cp39-win_amd64
  • encryption.cp39-win_amd64

from tiktok-api-python.

ghis21 avatar ghis21 commented on May 14, 2024

Had the same problem while running on Jupyter.
ModuleNotFoundError: No module named 'TiktokApi.browser'

pip install the modules inside requirements.txt. And the browser and encryption pyd files are inside the TiktokApi folder.
Did I miss out something?

from tiktok-api-python.

ghis21 avatar ghis21 commented on May 14, 2024

Had the same problem while running on Jupyter. ModuleNotFoundError: No module named 'TiktokApi.browser'

pip install the modules inside requirements.txt. And the browser and encryption pyd files are inside the TiktokApi folder. Did I miss out something?

ok, seems like just need to remove the middle string from "browser.cp39-win_amd64.pyd" to "browser.pyd".

from tiktok-api-python.

lazezo2 avatar lazezo2 commented on May 14, 2024

this module extension build for windows and will not work in other system.....

  • browser..cp39-win_amd64
  • encryption.cp39-win_amd64

can you please make another build for those modules to work in google colab

from tiktok-api-python.

lazezo2 avatar lazezo2 commented on May 14, 2024

ok i will check on colab

any news

from tiktok-api-python.

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.