Overview
SocialScrapingLibrary supports:- Reddit: Posts, comments, subreddits
- Twitter/X: Tweets, profiles, searches
- LinkedIn: Public profiles and posts
- Instagram: Posts, profiles, reels, hashtags
- TikTok: Videos, profiles, hashtags
- YouTube: Videos, channels, comments
- Facebook: Posts, profiles, groups
Supported Platforms
- Get best posts from subreddits
- Search posts by keyword
- Get post comments
- Filter by upvotes, time, etc.
Twitter/X
Capabilities:- Get tweets from profiles
- Search tweets by keyword
- Get tweet details and replies
- Filter by engagement metrics
- Get public profile information
- Enrich company data
- Search profiles
- Get profile posts
- Get profile posts and reels
- Search reels by keyword
- Get post comments
- Search hashtags and locations
TikTok
Capabilities:- Get profile videos
- Search videos by hashtag or keyword
- Get video details and comments
- Fetch profile information
YouTube
Capabilities:- Get video metadata and transcripts
- Fetch channel info and videos
- Search videos by keyword
- Get video comments
- Get posts from profiles/pages
- Get group posts with sorting
- Get post comments
- Fetch profile/page information
Public Data Only
What You Can Access
✅ Public posts and tweets ✅ Public profiles and pages ✅ Public comments and replies ✅ Public groups and communities ✅ Public hashtags and searchesWhat You Cannot Access
❌ Private accounts ❌ Direct messages (DMs) ❌ Restricted content ❌ Private groups ❌ Content requiring loginCaching
Social scraping tools use caching to reduce API calls and improve performance.Cache TTL
Different methods have different cache durations:| TTL | Methods |
|---|---|
| 300s (5 min) | Profile info, post details |
| 120s (2 min) | Posts, comments, feeds |
| 60s (1 min) | Search results |
Bypassing Cache
Force fresh data when needed:Use
bypass_cache=True when you need real-time data, such as checking for new posts immediately after they’re published.Batch Operations
Use batch methods for multiple items - significantly faster than sequential calls.Example: Batch Profile Info
Available Batch Methods
Most tools support batch operations:get_profile_info_batchget_profile_posts_batchget_post_details_batchget_post_comments_batch
Pagination
Many methods support pagination for large result sets.Example: Paginated Posts
Use Cases
Social Listening
Monitor mentions, hashtags, and keywords across platforms.
Content Research
Research trending content and topics.
Competitor Analysis
Track competitor posts and engagement.
Lead Generation
Find potential leads from public profiles.
Best Practices
Use Reasonable Limits
Use Reasonable Limits
Don’t fetch 100 items just to use 5. Use reasonable limits based on actual needs.
Use Batch Operations
Use Batch Operations
Always use batch methods when processing multiple items. They’re much faster.
Respect Cache
Respect Cache
Don’t bypass cache unless you need real-time data. Caching improves performance.
Handle Pagination
Handle Pagination
Use pagination for large result sets instead of high limits.
Limitations
Platform-Specific Limits
Each platform has its own limitations:- Instagram: Comments endpoint returns max ~300 entries
- Facebook: Maximum 100 items per request
- Reddit: Rate limits apply to API calls
- Twitter: API rate limits and restrictions
General Limitations
- Public data only: Cannot access private content
- No authentication: Cannot use logged-in features
- Rate limits: Platform-specific rate limits apply
- Terms of service: Must comply with each platform’s ToS
Troubleshooting
No results returned
No results returned
- Verify the profile/account is public
- Check that the URL/username is correct
- Ensure you’re not hitting rate limits
- Try bypassing cache
Rate limit errors
Rate limit errors
- Reduce request frequency
- Use caching to avoid repeated calls
- Implement retry logic with backoff
Private content error
Private content error
- Verify the content is public
- Check account privacy settings
- Use public alternatives if available
Related Features
- Web Tools - General web scraping capabilities
- Integrations - Additional scraping tools via MCP
Social scraping is a powerful feature for data collection and monitoring. Always respect platform terms of service and user privacy.