-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to personalize coordinates #248
Ability to personalize coordinates #248
Conversation
li7vinov-denis
commented
Jan 7, 2024
- added ability to personalize desired coordinates, which allows to escape captcha
Just tested but didn't change anythings for me. |
I got the same i got it running on a NUC can't change my ip adres. The app is working normal on the same ip adres |
Did you changed coordinates in configuration using |
I double check the changes I made from your pull but still have this error... Saved config at: /home/data/tgtg-bot/.config/toogoodtogo-watcher-nodejs/config.json Error: spawn vim ENOENT Node.js v18.19.0 |
I just changed it in the config file as i have the same error as zig |
Do the changes work for someone? |
No change for me ! |
@li7vinov-denis do you have a docker image with these changes published somewhere? |
I can't get it to work anymore either. |
Problem is that all of your sessions have probably expired, and the captcha cannot be avoided by sending the coordinates when logging back in. You'll have to log in using the app e.g. through an emulator, then copy access/refresh tokens and datadome cookie into the config manually. Then it should work. |
Tried to re-auth with the code in the PR but it seems the captcha is still being triggered. I'm still getting a 403 response
|
I'm not sure this is the long term solution. https://apptoogoodtogo.com/api/auth/v3/token/refresh has a max. validity and basically expired every couple of days. After the update this was not necessary anymore. |
Where do you put the datadome in config files ? Weird things is that login is working using a tgtg-python script. And trigger the (old one??) email link/digit code verification process. EDIT : Python script not working from now... Asking for captcha code |
This is described here how the datadome cookie was added manually before the latest update to the application, which should have made this redundant. |
Ok thanks for the link :) |
Ok, then I will do the same. |
For me opening the https://apptoogoodtogo.com/api/auth/v3/token/refresh website doesn't show any captcha to solve (shows text with 405 GET error, which shouldn't be any problem). I can still get my cookie datadome however, but after adding to the config file there's still the 403 error. Can't login in the tgtg watcher too due to the same error |
Even from another web browser ? Or try clean you web browser cookies/sessions. |
Same here. EDIT: |
Already tried all of that, still the same issue |
Ok, got it working miraculously. In the config beside "cookie" I've also put "user-agent" like this: "headers": { Put your datadome after the cookie. What I've done to make it work is that I changed the app version in the "user-agent" to the latest one, which is 23.12.1 and it started working. |
Yup, that did it also for me. Log-in and watching works! I hope that the cookie is not expiring any time soon. |
Thank you its working again |
thanks it work for me. :) |
I tried to apply NickXDD's solution but after trying everything I can't do it. could someone help me? |
What kind of errors do you get? |
|
Hm...hard to say tbh. |
Yes but I don't know where and in which file applied the changes indicated above |
This
is done in the config file. |
I put it in the config.defaults.json file, but I still get the same error, nothing has changed |
You have to check the cached config file as well. So, delete the cached config or change it in there as well or install the application/NodeJS from scratch, then it should work. |
I think it is a problem with the headers. I've added the following configuration to my config.json file and it seems to be working normally again "headers": {
"User-Agent": "TGTG/21.1.12 Dalvik/2.1.0 (Linux; Android 12; SM-G920V Build/MMB29K)'"
} and also change Then I redeployed the container (in my case I use docker), did the I have also noticed that if I deploy it on a server in another country other than where my account is configured, then it returns 403 error, but if I deploy it on a server at home, it no longer returns the 403. |
I have not seen any evidence that changing the coordinates makes any difference. |