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

all Instagram accounts disabled due to scraping 401s #883

Closed
snarfed opened this issue Aug 22, 2019 · 1 comment

Comments

@snarfed
Copy link
Owner

commented Aug 22, 2019

ugh. no idea what's going on. I'll be able to look more when I'm back to a computer on 8/27 ish.

example log:

2019-08-22 14:09:41.002218 I requests.get https://www.instagram.com/kevinmarks/ {}
2019-08-22 14:09:49.718906 W Error 401, response body: u''
2019-08-22 14:09:49.719062 W Disabling source due to: 401 Unauthorized
Traceback (most recent call last):
File "/base/data/home/apps/s~brid-gy/background:8.420337248316607855/tasks.py", line 95, in post
self.poll(source)
File "/base/data/home/apps/s~brid-gy/background:8.420337248316607855/tasks.py", line 161, in poll
min_id=source.last_activity_id, cache=cache)
File "/base/data/home/apps/s~brid-gy/background:8.420337248316607855/instagram.py", line 106, in get_activities_response
return self.gr_source.get_activities_response(*args, **kwargs)
File "/base/data/home/apps/s~brid-gy/background:8.420337248316607855/local/lib/python2.7/site-packages/granary/instagram.py", line 227, in get_activities_response
cookie=cookie, fetch_extras=fetch_replies or fetch_likes, cache=cache)
File "/base/data/home/apps/s~brid-gy/background:8.420337248316607855/local/lib/python2.7/site-packages/granary/instagram.py", line 327, in _scrape
raise requests.HTTPError('401 Unauthorized', response=resp)
HTTPError: 401 Unauthorized
2019-08-22 14:09:49.761869 I Updating kevinmarks (Instagram) /instagram/kevinmarks : {u'status': u'disabled', u'poll_status': u'ok'}
2019-08-22 14:09:49.834292 I Added poll task 2411484001868313675 with args {'countdown': 70608.3496294408}
@snarfed

This comment has been minimized.

Copy link
Owner Author

commented Aug 30, 2019

fixed, at least temporarily, by scraping with an IG account's sessionid cookie. gory details in #665 (comment).

@snarfed snarfed closed this Aug 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.