UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

KeyError: 'hasMore'

Open Code4Win opened this issue 6 years ago • 3 comments

Environment: OnlyFans DataScraper v5.6.1 macOS 10.15.7 (19H2) Python 3.9 Script run from command line

Issue:
While scrapping 'Type: Messages' error raised, "KeyError: 'hasMore'". hasmore_error

Code4Win avatar Nov 12 '20 22:11 Code4Win

Additional Info:
Script run from command line again resulted in successful completion without the error.

Code4Win avatar Nov 13 '20 00:11 Code4Win

Ahh yes, it's because I haven't handled empty results yet. If you run it again it should work. I'll make a commit later on. Usually happens if you're on a proxy.

UltimaHoarder avatar Nov 13 '20 02:11 UltimaHoarder

Added it in the latest commit. It will retry if the result is empty. Hoping this doesn't introduce an infinite loop.

UltimaHoarder avatar Nov 13 '20 16:11 UltimaHoarder