Package name in this build: snscrape 0.7.0.20230622.
| Exception | What it means |
|---|---|
ScraperException | Unable to retrieve guest token |
ScraperException | A Twitter API response was blocked with status 403, 404 or 429. |
ScraperException | Retries ran out: {n} requests to {url} failed, giving up. |
EntityUnavailable | User unavailable or Community unavailable. |
ScraperException | Redirected to login page |
ScraperException | Empty 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.