costastf / locationsharinglib

A library to retrieve coordinates from an google account that has been shared locations of other accounts.
MIT License
170 stars 29 forks source link

Guide on how to save cookie? (2) #93

Closed zefoo closed 3 years ago

zefoo commented 3 years ago

Not sure if my previous post went through and/or if notification was sent?

Reference: #92

Hey costastf, super appreciate your fast message. I just found that and actually just came back in here to report my findings. :)

I go to the email I got from google immediately after share, subject: "See foo's real-time location on Google Maps"

Then I click on "View on Google Maps"

I login. I export with Chrome's get-cookies.txt. I follow https://locationsharinglib.readthedocs.io/en/latest/usage.html and feed the full path of the cookies file. As well as my email (I tried both a google apps account and a personal @gmail account). I get this error:

InvalidCookies: The cookies provided do not provide a valid session, could not reach personal account page.Please create another cookie file and try again.

I've went through this process a few times now. Am I doing something incorrectly?

Thank you!

costastf commented 3 years ago

You are just lucky i just woke up and i had some time before i have to leave :) This has been designed over personal gmail accounts. I have not tested this with any other of the possible offerings for accounts. I have created a tracker.account@gmail.com for instance (not acctual email) and share my location from my personal account to that. Then you need to log in with your tracker.account@gmail.com and get the cookies for that. I hope this helps. If it does not, please enable debug logging to see if there is anything there. Please be mindful when pasting any debugging output as to not share any personal info, although i hope you won't need to :)

ps: responded on the initial issue and just copy pasted the response here also in case you missed the other one.

zefoo commented 3 years ago

I was using Incognito. It worked without Incognito. Thank you. :) How long does this cookie last for before I need to do this again?

costastf commented 3 years ago

it should not expire, unless you log out of the session from the browser. I think i can close this now?

zefoo commented 3 years ago

Thanks for confirming before closing.

Maybe last question. :) Is there any limit to how many users can share their location? I'm wanting to use this to help a non-profit. Thank you!

zefoo commented 3 years ago

Oh, and second question - have you seen any issues if I pull location every 10 minutes? Any concern about getting blacklisted? Thank you thank you!

costastf commented 3 years ago

I don't know, I guess you can look that up on the Google documentation about location sharing.

On Sun, Oct 17, 2021, 07:49 zefoo @.***> wrote:

Thanks for confirming before closing.

Maybe last question. :) Is there any limit to how many users can share their location? I'm wanting to use this to help a non-profit. Thank you!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/costastf/locationsharinglib/issues/93#issuecomment-945054186, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDMK2ZUFCMS5Z2S3NLIKWTUHJPVXANCNFSM5GENK4CQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zefoo commented 3 years ago

Ok, thanks!

costastf commented 3 years ago

Oh, I missed this question. No there is no problem, the UI queries the location every 30 seconds so there will be no problem.

On Sun, Oct 17, 2021, 08:43 zefoo @.***> wrote:

Oh, and second question - have you seen any issues if I pull location every 10 minutes? Any concern about getting blacklisted? Thank you thank you!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/costastf/locationsharinglib/issues/93#issuecomment-945059828, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDMK264BZORESE5ZP5MWB3UHJV7HANCNFSM5GENK4CQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.