ArchivedUltimaScraper
ArchivedUltimaScraper copied to clipboard
[OnlyFans] 'AuthModel' object has no attribute 'auth_details'
Hello, I am getting the following error after updating to the latest:
File "...\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-D7yaGwKQ-py3.11\Lib\site-packages\ultima_scraper_collection\modules\module_streamliner.py", line 415, in account_setup auth.auth_details.email ^^^^^^^^^^^^^^^^^ AttributeError: 'AuthModel' object has no attribute 'auth_details'. Did you mean: 'get_auth_details'?
1. poetry cache clear pypi --all
2. python updater.py
3. poetry run python start_us.py
1. poetry cache clear pypi --all 2. python updater.py 3. poetry run python start_us.py
Same issue, and no luck
more details
Choose Sites: 0 = All | 1 = OnlyFans | 2 = Fansly
1
Choose Profiles: 0 = All | 1 = default
1
Traceback (most recent call last):
File "/home//UltimaScraper/start_us.py", line 62, in <module>
asyncio.run(main())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home//UltimaScraper/start_us.py", line 44, in main
_api = await USR.start(
File "/home//UltimaScraper/ultima_scraper/ultima_scraper.py", line 50, in start
await self.start_datascraper(datascraper)
File "/home//UltimaScraper/ultima_scraper/ultima_scraper.py", line 88, in start_datascraper
setup, _subscriptions = await datascraper.account_setup(
File "/root/.cache/pypoetry/virtualenvs/ultima-scraper-QjxTFIwQ-py3.10/lib/python3.10/site-packages/ultima_scraper_collection/modules/module_streamliner.py", line 415, in account_setup
auth.auth_details.email
AttributeError: 'AuthModel' object has no attribute 'auth_details'. Did you mean: 'get_auth_details'?
more details
Choose Sites: 0 = All | 1 = OnlyFans | 2 = Fansly 1 Choose Profiles: 0 = All | 1 = default 1 Traceback (most recent call last): File "/home//UltimaScraper/start_us.py", line 62, in <module> asyncio.run(main()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home//UltimaScraper/start_us.py", line 44, in main _api = await USR.start( File "/home//UltimaScraper/ultima_scraper/ultima_scraper.py", line 50, in start await self.start_datascraper(datascraper) File "/home//UltimaScraper/ultima_scraper/ultima_scraper.py", line 88, in start_datascraper setup, _subscriptions = await datascraper.account_setup( File "/root/.cache/pypoetry/virtualenvs/ultima-scraper-QjxTFIwQ-py3.10/lib/python3.10/site-packages/ultima_scraper_collection/modules/module_streamliner.py", line 415, in account_setup auth.auth_details.email AttributeError: 'AuthModel' object has no attribute 'auth_details'. Did you mean: 'get_auth_details'?
Try this
sudo rm -rf /root/.cache/pypoetry
python updater.py
poetry run python start_us.py
Try this
sudo rm -rf /root/.cache/pypoetry python updater.py poetry run python start_us.py
@RayRho93 @Javier-bat
Sorry still failed, but I do read into the api code and found the solution.
Change my auth.json
"Cookie": "csrf=*; auth_id=*; cookiesAccepted=all; __stripe_mid=*; fp=*; sess=*; st=*; ref_src=",
into
"Cookie": "csrf=*; auth_id=*; cookiesAccepted=all; __stripe_mid=*; fp=*; sess=*; st=*;",
I found that because the origin module code says I failed in login, after that I look into my session. That was the cookie I just copy all from the website, and noticed that wired end.
Remove that no end key, and login successfully good luck and hope this works : )
Try this
sudo rm -rf /root/.cache/pypoetry python updater.py poetry run python start_us.py
@RayRho93 @Javier-bat
Sorry still failed, but I do read into the api code and found the solution.
Change my auth.json
"Cookie": "csrf=*; auth_id=*; cookiesAccepted=all; __stripe_mid=*; fp=*; sess=*; st=*; ref_src=",
into
"Cookie": "csrf=*; auth_id=*; cookiesAccepted=all; __stripe_mid=*; fp=*; sess=*; st=*;",
I found that because the origin module code says I failed in login, after that I look into my session. That was the cookie I just copy all from the website, and noticed that wired end.
Remove that no end key, and login successfully good luck and hope this works : )
Tried that, just takes me back to the original error and ends up re-writing the auth.json to the original one
Tried that, just takes me back to the original error and ends up re-writing the auth.json to the original one
@Prophaniti86 How may I help you? What's your original error?
About the original auth.json, I met two case, of that:
- Return to empty auth.json The default auth.json permissions it created is --------- (even it depends on OS, but my case is) And it may unable to read when process started.
sudo chmod 777 __user_data__/profiles/default/auth.json
- Cookie I set that exists but no use: just simply edit active key in JSON, auth.json will be disable and re-write when hit the error, so I've to re-edit auth.json every time I hit errors.
{
...
"Cookie": "....",
"active": true,
...
}
O after making those changes, it goes back to AttributeError: 'AuthModel' object has no attribute 'auth_details'. Did you mean: 'get_auth_details'?
and then it re-rites the auth.json to be the original version before the changes you suggested
try
ls -l __user_data__/profiles/default/auth.json
What's it say ?
I had your problem because my auth.json didn't had right permissions.
After I changed it into chmod 777
then problem fixed.
make sure
cat __user_data__/profiles/default/auth.json
is the right content you feed before launch anything.
or try remove auth.json, and generated new one ? perhaps it has wrong permissions.
Hey I'm doing all this in command prompt and i honestly know nothing. Sorry, but I need like.. really basic instructions lol
My original issue is fixed but after a while of the scraper running, I am getting this error now
Traceback (most recent call last):
File "C:\Users\Raul_\Documents\GitHub\OnlyFans\start_us.py", line 62, in
My original issue is fixed but after a while of the scraper running, I am getting this error now
Have you tried only fetch one instead of fetch all at one round?
This repo author said may some post content would break the scipt, and I've no idea how you get there : (
Did you get some part of file to downdload?
I got it all working and I have no idea how lol
I got it all working and I have no idea how lol
Nevermind, I got it scraping everyone, then it gets to processing and crashes. Here's the traceback
EDIT: I turned off paid content and messages and it works now. I think it misses items though
EDIT 2: Crashes on a specific profile
Traceback (most recent call last):
File "C:\Users\Matt\Desktop\UltimaScraper-master\start_us.py", line 62, in
Looks like some content on specific post crash the script. Are there emojis ? that's known issues write on README.
Running into the same AuthModel issue on latest commit
Updated to the latest commit and I am having the same AuthModel issue again. I made sure to redo the auth.json and I am still running into the error.
Same issue with the docker container, any workarounds yet?
This error means the user was not successfully authenticated.
For me, my config.json
file for dynamic rules link was not automatically updated from
"dynamic_rules_link": "https://raw.githubusercontent.com/DATAHOARDERS/dynamic-rules/main/onlyfans.json",
to
"dynamic_rules_link": "https://raw.githubusercontent.com/DIGITALCRIMINALS/dynamic-rules/main/onlyfans.json",
I have no idea why this rule works for half a year without any update. Manually updating this make everything works.
I got a little farther by going into D:\Users\<USERNAME>\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-vH07-f3y-py3.10\Lib\site-packages\ultima_scraper_collection\modules\module_streamliner.py
and commenting out lines 415, 416, and 417 as such:
elif (
""" auth.auth_details.email
and auth.auth_details.password
and site_settings.browser.auth """
):
Alas, while that allows me to pass by the auth_details
bug, the script gets stuck on the Choose Medias prompt, and just asks over and over without beginning any downloads.
I get the same behavior when I edit lines 414-418 to be
elif(
authed.get_auth_details.email
and authed.auth_details.password
and site_settings.browser.auth
):
which may be closer to the intended fix.