Giter VIP home page Giter VIP logo

Comments (8)

sudoguy avatar sudoguy commented on May 18, 2024

@tobeyond
Login function is realized in the bot. The first time you need to do it manually using the command in the terminal

tiktokpy login

A browser will open and you will need to log in. After login, the browser will close and cookies should be written to the settings.toml file.
Before initializing the bot, the settings.toml file is checked for cookies. If they are, then the bot will use them.

The next time when you run your bot will tiktokpy already logged

from tiktokpy.

tobeyond avatar tobeyond commented on May 18, 2024

Thank you.
I tried as you said. The browser opens and I've logged in. But it does not close nor saves the cookies :/

RuntimeError: Event loop is closed
sys:1: RuntimeWarning: coroutine 'Launcher.killChrome' was never awaited

from tiktokpy.

sudoguy avatar sudoguy commented on May 18, 2024

It looks like a bug. I'll try to fix it for the next release. After login, try to hover over your avatar and click on View profile. Maybe it will work now

from tiktokpy.

tobeyond avatar tobeyond commented on May 18, 2024

Cool. So I'm not sure if it worked. I got:

raise IOError('Unable to remove Temporary User Data')
OSError: Unable to remove Temporary User Data

but it actually created the cookies. So I'm trying quickstart but it's stuck in Getting trending 0%.

from tiktokpy.

sudoguy avatar sudoguy commented on May 18, 2024

This bug with broken progress bar has been fixed in version 0.8.3. Update package, pls and try again

pip install -U tiktokpy

from tiktokpy.

tobeyond avatar tobeyond commented on May 18, 2024

After I updated it, nothing would happen :/

from tiktokpy.

tobeyond avatar tobeyond commented on May 18, 2024

Still stuck forever in "Getting trending items"

from tiktokpy.

tobeyond avatar tobeyond commented on May 18, 2024

The login is not working again

from tiktokpy.

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.