snscrape errors

Written against snscrape 0.7.0.20230622. Messages below are copied from that source.

Package name in this build: snscrape 0.7.0.20230622.

ExceptionWhat it means
ScraperExceptionUnable to retrieve guest token
ScraperExceptionA Twitter API response was blocked with status 403, 404 or 429.
ScraperExceptionRetries ran out: {n} requests to {url} failed, giving up.
EntityUnavailableUser unavailable or Community unavailable.
ScraperExceptionRedirected to login page
ScraperExceptionEmpty response while resolving a Twitter user or community.

EntityUnavailable is a subclass of ScraperException. Its docstring says the target is unavailable, possibly because it does not exist or was suspended.

SocialScrape#

snscrape covers many sites SocialScrape does not. For X, profile is GET /v1/twitter/profile, one post is GET /v1/twitter/tweet, and a profile's posts are GET /v1/twitter/profile/tweets. These read what X shows logged out. Suspended accounts come back as removed, unknown ones as not_found.

For Instagram, profile is GET /v1/instagram/profile. A private account comes back with is_private true. Posts are GET /v1/instagram/profile/posts, and one post is GET /v1/instagram/post.

Failed requests cost 0 credits. New accounts get 100 credits on signup, no card. Codes are on errors.

Questions

Which version is this?

snscrape 0.7.0.20230622.

Is snscrape unmaintained?

The metadata and source we read do not say that.