ChrisStevens / garc

Python library and command line tool for collecting JSON data from Gab.ai. Scrape posts, users and comments from "free-speech" social media platform Gab.
MIT License
35 stars 15 forks source link

All searches now failing with KeyError: -1 #11

Open peka7777777 opened 3 years ago

peka7777777 commented 3 years ago

root:/app# garc search maga --number_gabs=1 Traceback (most recent call last): File "/usr/local/bin/garc", line 8, in sys.exit(main()) File "/usr/local/lib/python3.8/site-packages/garc/command.py", line 121, in main for thing in things: File "/usr/local/lib/python3.8/site-packages/garc/client.py", line 88, in search max_id = posts[-1]['id'] KeyError: -1

peka7777777 commented 3 years ago

This seems to be a result of opening too many sessions with a single user account (I am running garc in ephemeral containers so each new instance creates a new session on the account), not sure if there is a programatic way to close down sessions once they are opened (Certainly possible from the UI) but looking more at it

djkemmet commented 2 years ago

Did you ever find a solution? i was using garc to research gba but it looks like I'm getting a last_published_date = posts[-1]['created_at'] error now

elleobrien commented 2 years ago

I have this issue, too. I also don't have any other sessions running.