UltimaScraper
UltimaScraper copied to clipboard
Key Error author missing on reported post
{'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)]