szdc / tiktok-api

Unofficial API wrapper for TikTok
MIT License
1.26k stars 279 forks source link

Implement to an Android/Flutter app #165

Closed thecherrie closed 3 years ago

thecherrie commented 4 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Hi I was wondering how I could implement this into an Android or Flutter app where I could e.g. type in a username and get the userdata via this api, things such as amount of followers, following, and the profile picture. Thanks.

Describe the solution you'd like A clear and concise description of what you want to happen.

Additional context Add any other context here.

davidteather commented 4 years ago

The best solution for you would be using an api. You can setup an api and run it on a server then from flutter make a get request to your server.

thecherrie commented 4 years ago

The best solution for you would be using an api. You can setup an api and run it on a server then from flutter make a get request to your server.

Okay, I'm quite new to this process, could you state some steps as to doing this? Places to research? Tools to use?

davidteather commented 4 years ago

You could either make your own api or use an existing one. I’ve got one you can use as a service here https://rapidapi.com/rapidapideveloper/api/tiktok2 there’s also quite a few others on the rapidapi platform.

Or you can develop your own restful api. I used flask for python, but you could use something like node.js and express for this library as it’s written in js.

You would host this script on a server somewhere like on an AWS server or similar and then from flutter you can make requests to it to get tiktok data.

baughmann commented 4 years ago

@davidteather @thecherrie Wouldn't proxying requests to TikTok through your own server result in rate limiting/blacklisting by TikTok, depending on how many users your service has?

davidteather commented 4 years ago

It would limit it, but there's options to pass in other proxies when you call methods.

eduadoospy commented 4 years ago

i dont recieve nothing one of accounts i wait the time in description but dont match the other one too so

Em seg., 22 de jun. de 2020 às 18:35, David Teather < notifications@github.com> escreveu:

It would limit it, but there's options to pass in other proxies when you call methods.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/szdc/tiktok-api/issues/165#issuecomment-647781221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHYYXYX3CDSMLOHO4W7D6DRX7FAJANCNFSM4NMAWZOQ .

eduadoospy commented 4 years ago

the accs dont match and i dont try a lot to log in

Em seg., 22 de jun. de 2020 às 18:41, EDUARDO VIEIRA eduardoospy@gmail.com escreveu:

i dont recieve nothing one of accounts i wait the time in description but dont match the other one too so

Em seg., 22 de jun. de 2020 às 18:35, David Teather < notifications@github.com> escreveu:

It would limit it, but there's options to pass in other proxies when you call methods.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/szdc/tiktok-api/issues/165#issuecomment-647781221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHYYXYX3CDSMLOHO4W7D6DRX7FAJANCNFSM4NMAWZOQ .

baughmann commented 4 years ago

@davidteather That's a good point idk why I didn't think of that.

@eduadoospy To be honest I'm having the same issue as you are. I would assume that it's the default error message from TikTok whenever some of the anti-spam parameters aren't created properly.

This library looks fantastic, but I just cannot seem to implement the required parameters correctly. I've tried a mix of methods found in different projects, such as those below, but cannot seem to get it:

I'm really stumbling on implementing them. I just don't know enough about the security methods used to try to create a workaround.

EDIT: My RE skills are significantly lacking, but I believe that the answer lies in taking a deeper look into the JS source of the TikTok web app.

eduadoospy commented 4 years ago

Talking in telegram call me there? Eduardoospy

Em seg, 22 de jun de 2020 18:59, Nick B notifications@github.com escreveu:

@davidteather https://github.com/davidteather That's a good point idk why I didn't think of that.

@eduadoospy https://github.com/eduadoospy To be honest I'm having the same issue as you are. I would assume that it's the default error message from TikTok whenever some of the anti-spam parameters aren't created properly.

This library looks fantastic, but I just cannot seem to implement the required parameters correctly. I've tried a mix of methods found in different projects, such as those below, but cannot seem to get it:

I'm really stumbling on implementing them. I just don't know enough about the security methods used to try to create a workaround.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/szdc/tiktok-api/issues/165#issuecomment-647790341, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHYYX62SXTAFQQO4TFN5M3RX7H4FANCNFSM4NMAWZOQ .

baughmann commented 4 years ago

@eduadoospy If you're talking to me, I'm not a huge Telegram guy. However, if you send me an email I can invite you to a Slack channel.

eduadoospy commented 4 years ago

eduardoospy@gmail.com this email

Em seg, 22 de jun de 2020 19:16, Nick B notifications@github.com escreveu:

@eduadoospy https://github.com/eduadoospy If you're talking to me, I'm not a huge Telegram guy. However, if you send me an email I can invite you to a Slack channel.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/szdc/tiktok-api/issues/165#issuecomment-647796613, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHYYXZN62YEFKJSMLBHZLDRX7J4NANCNFSM4NMAWZOQ .

eduadoospy commented 4 years ago

Só im in old mobile and now

Em seg, 22 de jun de 2020 19:23, EDUARDO VIEIRA eduardoospy@gmail.com escreveu:

eduardoospy@gmail.com this email

Em seg, 22 de jun de 2020 19:16, Nick B notifications@github.com escreveu:

@eduadoospy https://github.com/eduadoospy If you're talking to me, I'm not a huge Telegram guy. However, if you send me an email I can invite you to a Slack channel.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/szdc/tiktok-api/issues/165#issuecomment-647796613, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMHYYXZN62YEFKJSMLBHZLDRX7J4NANCNFSM4NMAWZOQ .

nicholascioli commented 4 years ago

I've implemented some of the features here in flutter. Open to pull requests.

szdc commented 3 years ago

Closing as this project is no longer maintained.