https://github.com/mrmertkose/twitter-scraper
A PHP scraper for twitter. Without authentication.
https://github.com/mrmertkose/twitter-scraper
php scraper twitter without-api
Last synced: 13 days ago
JSON representation
A PHP scraper for twitter. Without authentication.
- Host: GitHub
- URL: https://github.com/mrmertkose/twitter-scraper
- Owner: mrmertkose
- Archived: true
- Created: 2020-03-12T18:23:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T19:37:03.000Z (almost 6 years ago)
- Last Synced: 2025-08-10T20:57:48.210Z (6 months ago)
- Topics: php, scraper, twitter, without-api
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Scraper
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 |