Coder Social home page Coder Social logo

musically-tiktok-api-python's Introduction

Hi there 👋

Tolga Tasci - 30 🦀 - Turkey 🇹🇷

I share publicly everything I do. If I didn't do it for someone else. To make me a better quality sharer;

  • Follow me ➕
  • Star the repositories you use or can use. ✨
  • Suggest me something. ✉️
  • Suggest the mistakes I made or the skills I need to improve. ✏️

How am I now:

  • I am a 1st year remote university student 🎒
  • I'm developing my english. 🇺🇸
  • I'm looking for a job. 🔎

Note : Swimming 🏊‍♂️ and watching movies are my indispensable activities.

How did I create this field?

musically-tiktok-api-python's People

Contributors

tolgatasci 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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

musically-tiktok-api-python's Issues

Is this API still working?

I'am writting API wrapper using Kotlin lang, and took your wrapper and other one as an example. But, I have a problem with getting data from requests, I think, tiktok implemented new security fixes, so, every request return empty data. Can you check is your api still working? For me it returns empty data, as mine.

Login error 7

I was trying to reverse engineer the TikTok API, but I got the login error 7: 'You are visiting our service too frequently'. I see that's a pretty frequent error. Does anyone know how to login?

error in login process

Thanks for your code sharing, it is helpful for me very much.
my testing is almost ok on 'no seesion required'.
But when I try login process, I got error message as below:

{'data': {'captcha': '', 'description': 'Hizmetimizi çok sık ziyaret ediyorsunuz.', 'error_code': 7}, 'message': 'error'}

I just simply input my tik tok account in demo.py, like...
api = api()

api.global_veriable['device_id'] = "6648944787888948741"
api.global_veriable['iid'] = "6648944787888948741"
api.global_veriable['openudid'] = "6vchx2vx3ubd051q"
username = "<<my user id>>"
password = "<<my password>>"

Do I need to do anything for this? Do I need to change device_id ,iid and openudid?
Your opinion will be appreciated. Thanks

After 10 likes, the API stops working for 5-10 minutes

Made a bot on the phone application for signing requests. I try to put 20 likes from 20 different accounts, only 10 are put in the end, the rest comes with the answer is_digg = 1 (I’m not set), after 5-10 minutes if I repeat the procedure, it works again, and only 10 again. Someone you know in what's the problem?

Unable to run the demo.py

Describe the bug
A clear and concise description of what the bug is.

While running the demo.py, I am getting the following error

{'data': {'captcha': '', 'description': '', 'error_code': 1105}, 'message': 'error'}

How can I run the program?

Do not login

Maybe it is my problem, but I can't login in my account

Error after typing the captcha

Describe the bug
I have registered on TikTok via Android version. When i tries to login with existing credentials i receive the captcha in response. After using code from demo.py and typing the captcha i received an error in response.
{'data': {'captcha': '', 'description': 'Kullanıcı yok', 'error_code': 1011}, 'message': 'error'}
{'data': {'user_id': None, 'session_key': None, 'screen_name': None}, 'cookies': {'odin_tt': '###'}
What can encounter such error? Also i delete api.global_variable['device_id'] declaration, and same for 'iid' and 'openudid' from demo.py example, because with it i can not even receive the captcha.

To Reproduce

  1. Running the code:

import api
import captcha
from capthca import capthca

test=api.api()
login=test.login('###', '###')
cc=capthca(login.get('code'))
test.login('###', '###', cc.backdata)
2. Typing the captcha from window appeared.
2. Receive an error in response:
{'data': {'captcha': '', 'description': 'Kullanıcı yok', 'error_code': 1011}, 'message': 'error'}
{'data': {'user_id': None, 'session_key': None, 'screen_name': None}, 'cookies': {'odin_tt': '###'}
Expected behavior
Successfully log in.

Additional context
Seems like error description not properly decided? Or it is TikTok issue

The postComment method is not working for me

The postComment method in the API is not working for me. The response includes a success status code and and a status message stating "Comment sent successfully.", however the comment does not appear on the post. Can someone else try and see if they can reproduce this problem?

To Reproduce
Steps to reproduce the behavior:

  1. call the postComment api method with a post ID and a comment text.
  2. Check the post manually to see if the comment appears on the post or not.

Expected behavior
The comment should appear on the post. (I tried on posts with 0 comments)

Desktop (please complete the following information):

  • OS: Windows
  • Node: Version 10.16.3

Additional context
I tried from 2 different accounts, and the likePost and follow methods are working for me.

Pagination of list_hashtag method

Hi, is there any possibility to paginate in list_hashtag method?
I see there is the count and offset query parameter, but the offset parameter seems to be doing nothing no matter which value it has. Is there any possibility to obtain some number of videos but skipping the first X? So I wouldn't have one query with high count, but multiple smaller queries using the pagination.

Giriş yaparken hata

{'data': {'captcha': '', 'description': 'Hizmetimizi çok sık ziyaret ediyorsunuz.', 'error_code': 7}, 'message': 'error'}

Demo.py de hesap bilgilerini yazıyorum sürekli bu hata çıkıyor. IP Adresimi değiştirince de hata devam ediyor. SSL Capture ile kendi openuid iid ve device id mi çekip yazdım yine aynı hata. Bir çözümü var mı acaba?

for c_key, c_value in costum_headers: ValueError: not enough values to unpack (expected 2, got 1)

Describe the bug
A clear and concise description of what the bug is.
Why is it giving me this error after costumheaders?
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

AttributeError: 'Api' object has no attribute 'decode'

, line 19, in request_get
url_parse = parse.urlsplit(url)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 398, in urlsplit
url, scheme, _coerce_result = _coerce_args(url, scheme)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 123, in _coerce_args
return _decode_args(args) + (_encode_result,)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 107, in _decode_args
return tuple(x.decode(encoding, errors) if x else '' for x in args)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 107, in
return tuple(x.decode(encoding, errors) if x else '' for x in args)
AttributeError: 'Api' object has no attribute 'decode'

How can i run it

Hi,
Can you Please tell me how can i run it because when i run in my terminal it throw me
Traceback (most recent call last):
File "demo.py", line 1, in

Thanks in advance.

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.