Kijiji-Repost-Headless: "LOGIN_RECAPTCHA_FAIL" came back

It worked flawlessly until Oct. 6, but suddenly collapsed with the following error {"errors":[{"message":"Something went wrong during authentication.","locations":[{"line":2,"column":3}],"path":["loginUser"],"extensions":{"errorCode":"LOGIN_RECAPTCHA_FAIL","statusCode":401}}],"data":{"loginUser":null}}

I’m using the latest master, please help

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 3
  • Comments: 30 (4 by maintainers)

Most upvoted comments

Since sessions seem to stay alive forever, maybe we can take a valid logged in session, steal the cookies and dump them into Kijiji-Repost-Headless?

That is a good idea. I just hardcoded session id cookie into the code and it’s posting ads with no issue. If anyone wants to do the same thing, here is what I did.

kijiji_api.py

  1. Add a new line after line #98 and type “”"
  2. Add a new line after line #118 and type “”"
  3. After line #119 add the following code

cookie_dict = {'ssid': 'REPLACE_WITH_YOUR_SESSION_ID'} requests.utils.add_dict_to_cookiejar(self.session.cookies,cookie_dict)

To get your session id.

  1. Go to kijiji.ca
  2. Login into your account if you are not logged in.
  3. Press F12
  4. In FireFox: Go to Storage. In Chrome: Go to Application.
  5. Open up Cookies, select https://www.kijiji.ca, look for a cookie “ssid”, double click on the value field and copy paste it into the code where it says REPLACE_WITH_YOUR_SESSION_ID.

Save kijiji_api.py, run it.

@JohnBakery, I have used the same scripts with the same images to post ads on kijiji.ca for a half year. It’s not because of the image sizes for sure. Thank you so much for the helps

Same here. This tool has been incredibly unreliable since summer. Even when it did work, it would be very hit or miss. Doesn’t help that sometimes kijiji itself takes a couple days to actually purge a deleted ad from the system before you’re allowed to post it again… Really hoping this can be fixed, used to work great last year!