mertkose / twitter-scraper
Scrape the twitter frontend api without auth.
Installs: 167
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/mertkose/twitter-scraper
Requires
- imangazaliev/didom: ^1.14
- php-curl-class/php-curl-class: ^8.7
This package is auto-updated.
Last update: 2022-06-26 17:51:34 UTC
README
A PHP scraper for twitter. Without authentication.
Installing
Run the command:
composer require mertkose/twitter-scraper
Quick start
use TwitterNoAuth\Twitter;
$data = new Twitter();
//Recent Tweets
var_dump($data->getTweets("#hashtag"))
Methods
→ getTweets() → array
| Key | Description |
|---|---|
| tweet_id | Tweet's identifier |
| username | Username |
| photos | (array) Tweet photos or Null |
| tweet_text | Content of tweet |
| time | Tweet time |
| hashtags | (array) Tweet hashtags or Null |
| replies | Replies count of tweet |
| likes | Like count of tweet |
| retweets | Retweet count of tweet |
→ getTrends() → array
Trend lists
→ getProfile() → array
| Key | Description |
|---|---|
| username | Username |
| page_title | Page Title or Name |
| biography | Biography or Null |
| photo | Photo |
| location | Location or Null |
| birthday | Birthday or Null |
| website | Website or Null |