List index out of range. Gab has changed something on their login page
When running a simple query: garc userposts user
I now get an error:
Traceback (most recent call last):
File "/home/maverick/.virtualenvs/garc2/bin/garc", line 8, in
I dug into this and found that the error page is being brought up instead of the login page. Setting the User-Agent to a browser instead of 'garc' fixed it.
Hi Paul, I am having this same issue but I am struggling to figure out how to set the user agent - do you mind sharing how you did that?
Sure. In client.py line 353 the user_agent is set to 'garc'. I changed this line to read:
user_agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36'