UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

KeyError: 'author'

Open roozbehzarei opened this issue 5 years ago • 8 comments

Error given while downloading... Untitled

roozbehzarei avatar Aug 18 '21 02:08 roozbehzarei

I also receive error now and then:

Same error as you.

Macmasteri avatar Aug 18 '21 17:08 Macmasteri

See: #1419

LunarPenguin avatar Aug 18 '21 18:08 LunarPenguin

think im getting the same but only on 1 creator, everyone else works fine :/ image

Throwaway115 avatar Aug 18 '21 20:08 Throwaway115

The work around posted here worked for me.

In the api_helper.py file, on line 395 change: media_set = list(chain(*media_set)) to: media_set = [x for x in list(chain(*media_set)) if not x.get('isReportedByMe')]

Credit to @Charmoq for coming up with that fix.

vacuran avatar Aug 18 '21 20:08 vacuran

The work around posted here worked for me.

In the api_helper.py file, on line 395 change: media_set = list(chain(*media_set)) to: media_set = [x for x in list(chain(*media_set)) if not x.get('isReportedByMe')]

Credit to @Charmoq for coming up with that fix.

This is the error I get when I did what you posted. Untitled-1

roozbehzarei avatar Aug 19 '21 00:08 roozbehzarei

The work around posted here worked for me.

In the api_helper.py file, on line 395 change: media_set = list(chain(*media_set)) to: media_set = [x for x in list(chain(*media_set)) if not x.get('isReportedByMe')]

Credit to @Charmoq for coming up with that fix.

Thanks for this. Worked for this specific model. Creds too @Charmoq! :)

Macmasteri avatar Aug 19 '21 04:08 Macmasteri

The work around posted here worked for me. In the api_helper.py file, on line 395 change: media_set = list(chain(*media_set)) to: media_set = [x for x in list(chain(*media_set)) if not x.get('isReportedByMe')] Credit to @Charmoq for coming up with that fix.

This is the error I get when I did what you posted. Untitled-1

From the error message it sounds like you have an issue with your indentation. Python cares a lot about spacing within your code. I went ahead and uploaded my fixed file. You'll need to rename it from api_helper.txt to api_helper.py (maybe make a copy of your original first just in case something goes wrong) because apparently I cannot attach .py files in posts.. api_helper.txt

vacuran avatar Aug 19 '21 13:08 vacuran

The work around posted here worked for me. In the api_helper.py file, on line 395 change: media_set = list(chain(*media_set)) to: media_set = [x for x in list(chain(*media_set)) if not x.get('isReportedByMe')] Credit to @Charmoq for coming up with that fix.

This is the error I get when I did what you posted. Untitled-1

From the error message it sounds like you have an issue with your indentation. Python cares a lot about spacing within your code. I went ahead and uploaded my fixed file. You'll need to rename it from api_helper.txt to api_helper.py (maybe make a copy of your original first just in case something goes wrong) because apparently I cannot attach .py files in posts.. api_helper.txt

For some reason your file worked. (and I'm not a noob in copy pasting a line of code!). Thank you very much.

roozbehzarei avatar Aug 19 '21 22:08 roozbehzarei