alexroan / twitter-scraper
Scrapes tweets from a user's profile
Installs: 391
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/alexroan/twitter-scraper
Requires
This package is not auto-updated.
Last update: 2025-10-12 11:15:48 UTC
README
Grab tweets from a user's public profile without api credentials
Installation
Composer
composer require alexroan/twitter-scraper
Usage
//get feed $feed = Twitter_Scraper::get_feed('alexroan'); //loop through posts foreach($feed as $tweet){ //tweet id $id = $tweet->id; //username of tweeter $username = $tweet->username; //bool whether retweet or not $is_retweet = $tweet->is_retweet; //body text of tweet $text = $tweet->text; //time tweeted $time = $tweet->time; //any media in tweet $media = $tweet->media; //number of replies $reply = $tweet->reply; //number of retweets $retweet = $tweet->retweet; //number of favourites $favourite = $tweet->favourite; }