davidteather / TikTok-Api

The Unofficial TikTok API Wrapper In Python
https://davidteather.github.io/TikTok-Api
MIT License
4.76k stars 962 forks source link

[BUG] userPosts() does not return posts #49

Closed modelarious closed 4 years ago

modelarious commented 4 years ago

Requesting user's posts do not seem to respond when requesting using api.userPosts(username="username")

buggy code

import requests
import random
import string
import urllib.request
import glob
import os
import mimetypes
from TikTokApi import TikTokapi

api = TikTokapi("browsermob-proxy-2.1.4/bin/browsermob-proxy")
print(api.userPosts(username="levelsofpiano"))

Expected behavior

I would assume a JSON response describing the posts made by the user "levelsofpiano".

Actual behavior

Browser loads user's page, but does not load the user's posts.

Screenshots

Screen Shot 2020-01-12 at 9 53 41 AM

Desktop (please complete the following information):

Additional context

No errors are produced on the console. I left it running for a good 20 minutes and got no response, so it's safe to say that the program hangs on this command.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

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

davidteather commented 4 years ago

The API is currently broken as TikTok is detecting selenium. You may want to look at this. I believe it may still work, but I'm not completely sure.

I will be working on fixing the API in the upcoming days.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.