Avnsx / fansly-downloader

Easy to use fansly.com content downloading tool. Written in python, but ships as a standalone Executable App for Windows too. Enjoy your Fansly content offline anytime, anywhere in the highest possible content resolution! Fully customizable to download in bulk or single: photos, videos & audio from timeline, messages, collection & specific posts 👍
https://fansly.com/
GNU General Public License v3.0
1.27k stars 63 forks source link

API returned unauthorized #30

Closed sashacorosk closed 2 years ago

sashacorosk commented 2 years ago

Hey, firstly thank you for this, it's really a nice tool to use ! I used it several times without issues. I didnt change anything but now I have this message : [11]ERROR | 20:56 || API returned unauthorized. This is most likely because of a wrong authorization token, in the configuration file.

But I cant change the authorization token.

Can you tell me what to do there ? Thank you very much !

sashacorosk commented 2 years ago

it's not giving me a new token. Still the same after reseting the config file. I still have the same error message. I'll try manually but I checked it earlier and I couldnt manage to do it

Avnsx commented 2 years ago

it's not giving me a new token.

My bad I just double checked with fansly api, it seems like they've removed the authentication token from the apiv2 requests. They're mainly using api version 3 now and the authentication token is only inside the api version 3 requests (which automatic configurator is not finding). You've to type in apiv3 to find the authentication token manually now.

I will fix all this within the next couple days.

I expected this to happen, you can read about it here: https://github.com/Avnsx/fansly/issues/23

sashacorosk commented 2 years ago

Yeah I read that too. So I tried with "apiv3" but I cant find anything with this search. Am I doing it wrong or it's normal till you fix it ?

sashacorosk commented 2 years ago

But I am not sure to understand step 3.. I dont see how I have to "locate a request"

Avnsx commented 2 years ago

But I am not sure to understand step 3.. I dont see how I have to "locate a request"

When you type in "apiv3" where it asks you to in step 2 (on the picture), there'll only be a couple entries in the "names" field. One of them will be account?ids for example and you're supposed to find that one (or any other that is a apiv3 request) and look into the part where it says request headers for that request. In there you'll find the authorization token, once you copy it and paste it into the config.ini file together with your User-Agent (which you can also find in that same request), fansly scraper will work again.

But if you don't understand how to do this, you'll have to wait for me to publish the next update. Which I'll be doing once the repository reaches 200 stars.

sashacorosk commented 2 years ago

It's ok, I find out ! it's because it wasnt looking the same to me than in the screenshot. It's working now ! thank you very much !

Avnsx commented 2 years ago

Fixed in version v0.3.4 You can use the updater, to comfortably upgrade to the new version.