UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

scraping error

Open ghost opened this issue 5 years ago • 9 comments

Traceback (most recent call last): File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\ofd.py", line 60, in loop.run_until_complete(main()) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\ofd.py", line 44, in main api = await main_datascraper.start_datascraper( File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\datascraper\main_datascraper.py", line 93, in start_datascraper await main_helper.process_names( File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\helpers\main_helper.py", line 930, in process_names result = await module.start_datascraper(authed, username, site_name) File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\modules\onlyfans.py", line 159, in start_datascraper await prepare_scraper(authed, site_name, item) File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\modules\onlyfans.py", line 786, in prepare_scraper master_set = await subscription.get_posts() File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\apis\onlyfans\classes\create_user.py", line 300, in get_posts final_results = [create_post(x, self) for x in results] File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\apis\onlyfans\classes\create_user.py", line 300, in final_results = [create_post(x, self) for x in results] File "C:\Users\user\Downloads\OnlyFans-master\OnlyFans-master\apis\onlyfans\classes\create_post.py", line 13, in init self.author = create_user.create_user(option["author"]) KeyError: 'author'

ghost avatar Jul 04 '21 08:07 ghost

Please provide some more context as to when this error is occuring. Right now we can only guess at the problem.

I good start would be providing the python version your using, the OS your using and if you are running native or in a docker.

LunarPenguin avatar Jul 04 '21 15:07 LunarPenguin

Current commit. Windows 10. Native. Python 3.9.5

Happens right when the scrape is supposed to start. Checked the user db file and the only thing thats in there is "stories" when there should be several pictures and a few videos

ghost avatar Jul 04 '21 15:07 ghost

Which user were you scraping

UltimaHoarder avatar Jul 04 '21 17:07 UltimaHoarder

same here . Changed the set-cookie contained in INIT with the one in the first ME response, everything worked.

capybarbu avatar Jul 04 '21 18:07 capybarbu

@bambooLoutre the sess_id is the same in both the init and me responses for me - are they different for you?

tocking avatar Jul 05 '21 02:07 tocking

@bambooLoutre the sess_id is the same in both the init and me responses for me - are they different for you?

Didn't pay attention sorry :/ but i saw the cookie in INIT was way shorter than the one in the ME response so i assumed the first one wasn't right.

capybarbu avatar Jul 05 '21 05:07 capybarbu

new commit didnt fix my issue

ghost avatar Jul 05 '21 15:07 ghost

@neuri4848 @DIGITALCRIMINAL Still getting this error, even with the latest commit

tocking avatar Jul 06 '21 15:07 tocking

yeah this issue hasnt been resolved. bambooloutre had a completely different issue than mine.

@DIGITALCRIMINAL

ghost avatar Jul 08 '21 03:07 ghost