UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

Key Error author missing on reported post

Open blade2005 opened this issue 3 years ago • 0 comments

{'responseType': 'post', 'id': 47915613, 'postedAt': '2020-09-15T13:51:25+00:00', 'postedAtPrecise': '1600177885.000000', 'isReportedByMe': True}

Above the data found from option as reported in create_post.

Probably good logic to skip if the author is missing it's probably not got content to it or you could check isReportedByMe is present/true and skip it.

Possible workaround/solution is to add a filter to the list comprehension that calls it on L301 in create_user from final_results = [create_post(x, self) for x in results] to final_results = [create_post(x, self) for x in results if not x.get("isReportedByMe", False)]

blade2005 avatar Mar 13 '22 10:03 blade2005