taux1c / onlyfans-scraper

A tool that allows you to print to file all content you are subscribed to on onlyfans including content you have unlocked or has been sent to you in messages.
MIT License
290 stars 34 forks source link

auth failed #57

Closed Zewaria closed 1 year ago

Zewaria commented 1 year ago

my ofscraper tries to login 10 attempts with no success and ends in "auth failed".. why is that and how to fix it?

nonameeleven commented 1 year ago

the signing method and variables have changed

le0nr commented 1 year ago

how can we fix it?

Zewaria commented 1 year ago

how to fix??

gman773 commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json'

Reference https://github.com/DATAHOARDERS/dynamic-rules

le0nr commented 1 year ago

It gives me Status: Down, even if I double checked api credentials

gman773 commented 1 year ago

It gives me Status: Down, even if I double checked api credentials

OF seem to be experiencing technical difficulties at the current time. It worked for me when I did the update yesterday.

le0nr commented 1 year ago

it's working now guys

Boomeroo commented 1 year ago

Hi there.. Any chance to keep the Like Option alive? Any help would be super appreciated. Thanks so much in advance

shurialvaro commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json'

Reference https://github.com/DATAHOARDERS/dynamic-rules

Doesnt Work on my end sadly

ablamj commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json' Reference https://github.com/DATAHOARDERS/dynamic-rules

Doesnt Work on my end sadly

not for me either :(

aporzio1 commented 1 year ago

works for me as far as authenticating but I get an error, it looks like its for every file

Illegal header value b'\nMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'

Boomeroo commented 1 year ago

works for me as far as authenticating but I get an error, it looks like its for every file

Illegal header value b'\nMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'

nMozilla?

vajdao commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json'

Reference https://github.com/DATAHOARDERS/dynamic-rules

works like a dream, thanks bro! :)

vajdao commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json' Reference https://github.com/DATAHOARDERS/dynamic-rules

Doesn't work for me either, still listed as down :-/

Make sure to edit the source file under: %localappdata%\Programs\Python\Python311\Lib\site-packages\onlyfans_scraper\ (in case if you have Python 3.11) If you got any other, then just go until this folder: %localappdata%\Programs\Python\ and then manually enter the directories until you reach the constants.py under the main directory in onlyfans_scraper

Side note, it does not specifically has to be in the row 48, for example in my case I've found it at row 43. Easiest is to just simply CTRL+F the DC_EP

thisisme79 commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json' Reference https://github.com/DATAHOARDERS/dynamic-rules

Doesn't work for me either, still listed as down :-/

Make sure to edit the source file under: %localappdata%\Programs\Python\Python311\Lib\site-packages\onlyfans_scraper (in case if you have Python 3.11) If you got any other, then just go until this folder: %localappdata%\Programs\Python\ and then manually enter the directories until you reach the constants.py under the main directory in onlyfans_scraper

Side note, it does not specifically has to be in the row 48, for example in my case I've found it at row 43. Easiest is to just simply CTRL+F the DC_EP

Correction, I am an idiot who can't read, and doesn't know how to spell... Now shows as up for me as well...

Boomeroo commented 1 year ago

Changed it but It's still down.. Just wondering if anybody else is still strugglin with this

dvkrav commented 1 year ago

Same issue on mac Using profile: main_profile Status - DOWN ? What would you like to do? Download content from a user ? Choose one of the following options: Print a list of my subscriptions Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/bin/onlyfans-scraper", line 8, in sys.exit(main()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/onlyfans_scraper/scraper.py", line 415, in main process_prompts() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/onlyfans_scraper/scraper.py", line 280, in process_prompts loop() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/onlyfans_scraper/scraper.py", line 218, in process_prompts subscribe_count = process_me(headers) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/onlyfans_scraper/scraper.py", line 197, in process_me my_profile = me.scrape_user(headers) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/onlyfans_scraper/api/me.py", line 26, in scrape_user r.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpx/_models.py", line 749, in raise_for_status raise HTTPStatusError(message, request=request, response=self) httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://onlyfans.com/api2/v2/users/me' For more information check: https://httpstatuses.com/400

evthar commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json'

Reference https://github.com/DATAHOARDERS/dynamic-rules

This is working for me today, though the line number that needs updating is different.

So if you're still having issues, rather than just editing line 48 of that file, find the line starting DC_EP and make the change.

It was also compounded by a browser update, requiring the normal auth.json update to match the cookie and user agent strings.

vajdao commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json' Reference https://github.com/DATAHOARDERS/dynamic-rules

This is working for me today, though the line number that needs updating is different.

So if you're still having issues, rather than just editing line 48 of that file, find the line starting DC_EP and make the change.

It was also compounded by a browser update, requiring the normal auth.json update to match the cookie and user agent strings.

Yepp, this is what I mentioned 2days ago at https://github.com/taux1c/onlyfans-scraper/issues/57#issuecomment-1627785861 (about the line numbers)

mbarberry commented 1 year ago

This worked for me today. Saw same posted before and just tried it.

On Tue, Jul 11, 2023 at 6:07 AM vajdao @.***> wrote:

Change row 48 in constants.py From DC_EP = ' https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = ' https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json ' Reference https://github.com/DATAHOARDERS/dynamic-rules

This is working for me today, though the line number that needs updating is different.

So if you're still having issues, rather than just editing line 48 of that file, find the line starting DC_EP and make the change.

It was also compounded by a browser update, requiring the normal auth.json update to match the cookie and user agent strings.

Yepp this is what I mentioned 2days ago at #57 (comment) https://github.com/taux1c/onlyfans-scraper/issues/57#issuecomment-1627785861

— Reply to this email directly, view it on GitHub https://github.com/taux1c/onlyfans-scraper/issues/57#issuecomment-1630796950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMQTGGYE5AXD4ET2CPC42TTXPVFXTANCNFSM6AAAAAA2AW6ZGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dvkrav commented 1 year ago

i installed on mac using pip install. where is the location of this file which i need to modify ?

mbarberry commented 1 year ago

you can run "find ./ -name constants.py | grep onlyfans_scraper" from your terminal and it will output the relative path.

try it from ~ first and then /. You can get to ~ and / by running "cd ~" or "cd /" before the first command.

RedDeadRandy commented 1 year ago

no need. just do pip show onlyfans-scraper

you can run "find ./ -name constants.py | grep onlyfans_scraper" from your terminal and it will output the relative path. try it from ~ first and then /. You can get to ~ and / by running "cd ~" or "cd /" before the first command.

dvkrav commented 1 year ago

thks above comments helped

jamesle3199 commented 1 year ago

Change row 48 in constants.py From DC_EP = 'https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json' To DC_EP = 'https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json'

Reference https://github.com/DATAHOARDERS/dynamic-rules

i love you

taux1c commented 1 year ago

This repo is outdated (no longer works) and I am no longer maintaining it.