Skip to content
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

Restore Token Not Working? #28

Open
trockwell786 opened this issue Dec 29, 2015 · 5 comments
Open

Restore Token Not Working? #28

trockwell786 opened this issue Dec 29, 2015 · 5 comments

Comments

@trockwell786
Copy link

I'm wondering if anyone else is able to use the restore_token method to send snapchat requests. I've tried using an auth_token generated by Casper in an android virtual device as well as dumping the token from an iPhone backup. Unfortunately my request always returns a 401:

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://feelinsonice-hrd.appspot.com/loq/all_updates

I'd be surprised if I were IP banned considering i'm using my personal IP that connects fine on my iPhone. I've also tried two seperate google accounts. The first has worked to log in prior, the second freshly created. I've noticed I cannot re-log into Casper using the auth token it generates.

Thanks.

@Chiggins
Copy link
Contributor

It's always worked for me. If something logs out, I just login with Casper and use the auth_token from that. Has happened a few times before. Not too sure why you're seeing this error.

@trockwell786
Copy link
Author

Hmmm are you currently able to log in with a Casper token? Like I said i've noticed even the generated Casper token can only be used to log in once. If I close the app, reopen and attempt to log in with the given auth token I get a login error.

I'll quickly try registering a new snapchat account/gmail account to see if one of my accounts are flagged.

Same issue with a brand new snapchat account and gmail account. Here's the script i'm using.

from snapy import Snapchat

username = 'myusername'
auth_token = 'auth_str'
gmail = '[email protected]'
gpasswd = 'mypass'

s = Snapchat()
s.restore_token(username, auth_token, gmail, gpasswd)
s.get_updates()

Any thoughts?

@rxw
Copy link
Owner

rxw commented Dec 31, 2015

This is probably due to you google account being blocked and snapy being unable to get a token. Did you try to run this in a server?

@trockwell786
Copy link
Author

Like i've said, i've tried with brand new google accounts and a brand new snapchat account. Additionally, it's the same google account i'm using to log in with in casper. I've tried this on an OVH VPS.

I'm fairly certain this has something to do with the update message for Casper 1.5.2.2

@umbreon222
Copy link

I'm having the same troubles as @trockwell786 with the 401 Client Error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants