- Mar 11, 2022
- 453
- 10,417
Okay. Now I'm encountering this error:
"AttributeError: 'str' object has no attribute 'get'
What do I do?
"AttributeError: 'str' object has no attribute 'get'
What do I do?
I used this and it worked for meOkay. Now I'm encountering this error:
"AttributeError: 'str' object has no attribute 'get'
What do I do?
that works but now it doesnt scrape messagesI had this problem too and i found a fix for it.
Go to your .settings folder and open the config.json file, once you are there go to line 68 which is "messages": true, and change it to "messages": false,
I hope this works for you too
Thanks bro! Worked perfectly. I used the scraper againI used this and it worked for me
In the file apis\onlyfans\classes\create_user.py change the line 270 from:
results = [create_highlight(x) for x in results]
to
results = [create_highlight(x) for x in results.get("data")]
There isn't a line like that in my entire config.json file. What can I do?I had this problem too and i found a fix for it.
Go to your .settings folder and open the config.json file, once you are there go to line 68 which is "messages": true, and change it to "messages": false,
I hope this works for you too
Does this look like the text you see?anybody having issues with the scraper crashing? i can get to authorization and then it shoots some text and crashes within a second.
thats it, hope they get it fixed soon. thanks.Does this look like the text you see?
It isn't working for me anymore, works on normal posts but not for stories.Allow Right-Click isn't working for stories anymore?
Traceback (most recent call last):
File "C:\Users\oneho\Downloads\OnlyFans-7.6.1\start_ofd.py", line 20, in <module>
main_test.check_config()
File "C:\Users\oneho\Downloads\OnlyFans-7.6.1\tests\main_test.py", line 22, in check_config
json_config, updated = main_helper.get_config(path)
File "C:\Users\oneho\Downloads\OnlyFans-7.6.1\helpers\main_helper.py", line 826, in get_config
json_config = ujson.load(open(config_path))
ValueError: Expected object or value
Sorry if you've already asked, but I couldn't find a solution to my problem, can someone tell me?
Thank you very much, your advice helped me!Here's how I got mine to work. I'm guessing you might have to delete your config and auth files and just let the program create them over again.
First when you start the program again leave the config file exactly as is, just save it and exit. Don't add anything. lol As for the auth file well you just add whatever information that's yours.
These are the main changes I made for mine to work.
Changing the line "from seleniumwire import webdriver " to "from selenium import webdriver" in extras/OFLogin/start_ofl.py
Then this.
apis\onlyfans\classes\create_user.py change the line 270 from:
results = [create_highlight(x) for x in results]
to
results = [create_highlight(x) for x in results.get("data")]
Thing is though in this line the word changed from "data" to "list" so it's this now...
apis\onlyfans\classes\create_user.py change the line 270 from:
results = [create_highlight(x) for x in results]
to
results = [create_highlight(x) for x in results.get("list")]
So this is how I got mine to work. Good luck I guess.
Traceback (most recent call last):
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\start_ofd.py", line 104, in
asyncio.run(main())
File "C:\Users\cheen\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\cheen\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\start_ofd.py", line 86, in main
api = await main_datascraper.start_datascraper(
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\datascraper\main_datascraper.py", line 94, in start_datascraper
await main_helper.process_names(
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\helpers\main_helper.py", line 966, in process_names
result = await module.start_datascraper(authed, username, site_name)
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\modules\onlyfans.py", line 161, in start_datascraper
await prepare_scraper(authed, site_name, item)
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\modules\onlyfans.py", line 784, in prepare_scraper
highlights = await subscription.get_highlights()
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\apis\onlyfans\classes\create_user.py", line 270, in get_highlights
results = [create_highlight(x) for x in results]
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\apis\onlyfans\classes\create_user.py", line 270, in
results = [create_highlight(x) for x in results]
File "C:\Users\cheen\Downloads\HW\OnlyFans-7.6.1\apis\onlyfans\classes\create_highlight.py", line 3, in [B]init[/B]
self.id: int = option.get("id")
AttributeError: 'str' object has no attribute 'get'
Thxs dude. it works.Here's how I got mine to work. I'm guessing you might have to delete your config and auth files and just let the program create them over again.
First when you start the program again leave the config file exactly as is, just save it and exit. Don't add anything. lol As for the auth file well you just add whatever information that's yours.
These are the main changes I made for mine to work.
Changing the line "from seleniumwire import webdriver " to "from selenium import webdriver" in extras/OFLogin/start_ofl.py
Then this.
apis\onlyfans\classes\create_user.py change the line 270 from:
results = [create_highlight(x) for x in results]
to
results = [create_highlight(x) for x in results.get("data")]
Thing is though in this line the word changed from "data" to "list" so it's this now...
apis\onlyfans\classes\create_user.py change the line 270 from:
results = [create_highlight(x) for x in results]
to
results = [create_highlight(x) for x in results.get("list")]
So this is how I got mine to work. Good luck I guess.
Ok, so I'm a tad bit stupid and have just been using an extension till now to manually rip each individual post. So, I'm stuck here. I double click on the Start_ofd.py and it simply opens a text document, I've got no idea what I'd be doing wrong so I've got to ask for helpConfiguration
1. Double click on Start_ofd to start the script