bissolli / twitter-php-scraper
Twitter PHP Scraper. Get account information, tweets, likes, re-tweets and comments.
v1.3.1
2019-06-15 10:46 UTC
Requires
- php: >=7.1.0
- nesbot/carbon: ~1.32
- paquettg/php-html-parser: ^2.0
Requires (Dev)
- phpunit/phpunit: ~5.5
README
Twitter PHP Scrapper. Get account information, tweets, likes, re-tweets and comments through the Twitter handle.
Code Example
To get the user profile:
$twitter = new \Bissolli\TwitterScraper\Twitter('official_php'); var_dump($twitter->getProfile());
To load all the reachable tweets (last 20 tweets)
$twitter = (new \Bissolli\TwitterScraper\Twitter('official_php'))->loadTweets(); var_dump($twitter->getProfile()); var_dump($twitter->getTweets());
Installation
Using composer
composer require bissolli/twitter-php-scraper
If you don't have composer
You can download it here.
TODO
- Implement .travis.yml