Danie1 / threads-api

Unofficial Python API for Meta's Threads App
https://pypi.org/project/threads-api/
MIT License
121 stars 16 forks source link

Cant use on web server #53

Open Ryandesigns09 opened 1 year ago

Ryandesigns09 commented 1 year ago

I've created a flask web app that works locally but when I go to deploy it on glitch or pythonanywhere when I try and pull the info (ie use a search box to find a users info) it doesn't return anything and I can't see any issues as to why error wise. Do you have any suggestions on how to resolve?

Danie1 commented 1 year ago

Hey @Ryandesigns09, do you have any additional details? Have you tried raising the LOG_LEVEL to DEBUG? It will print all of the requests and responses to Threads.net made by the API.

Ryandesigns09 commented 1 year ago

Indeed, here's a bit of the response. it looks similar to my desktop response except from Keyword arguments: onwards.

` * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.

Danie1 commented 1 year ago

Thanks, can you please share the last request+response? Each of them has "[title]: ["PUBLIC REQUEST"]" for request and "[title]: ["PUBLIC RESPONSE"] for the response. From what you shared so far, it looks quite standard (no issues).