UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

AttributeError: 'str' object has no attribute 'get'

Open chenks opened this issue 5 years ago • 3 comments

script has been working fine up until this morning where i get the following error username, auth_id, sess, and app_taken are still correct in the auth.json.

auth_hash and auth_uniq are blank - but they were blank when it was working. the cookie string when inspecting the header doesn't have auth_hash.

Choose Profile
Names: Username = username  |  0 = All | 1 = default
0
Auth (V1) Attempt 1/10
Auth (V1) Attempt 2/10
Auth (V1) Attempt 3/10
Auth (V1) Attempt 4/10
Auth (V1) Attempt 5/10
Auth (V1) Attempt 6/10
Auth (V1) Attempt 7/10
Auth (V1) Attempt 8/10
Auth (V1) Attempt 9/10
Auth (V1) Attempt 10/10
Scraping Paid Content
Traceback (most recent call last):
  File "C:\of\start_ofd.py", line 40, in <module>
    main_datascraper.start_datascraper(json_config, site_name_lower)
  File "C:\of\datascraper\main_datascraper.py", line 85, in start_datascraper
    paid_content = module.paid_content_scraper(apis)
  File "C:\of\modules\onlyfans.py", line 304, in paid_content_scraper
    author = paid_content.get("author")
AttributeError: 'str' object has no attribute 'get'

chenks avatar Jan 21 '21 10:01 chenks

Check your user-agent again and update it. That should fix it. Or just go through the auth.json file again.

chidi9901 avatar Jan 21 '21 16:01 chidi9901

that sorted it. i guess my local browser had a version update which meant the agent needed changed in the config file?

chenks avatar Jan 22 '21 09:01 chenks

Fixed

UltimaHoarder avatar Jan 24 '21 08:01 UltimaHoarder