Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.
/ twitter-scraper Public archive

A PHP scraper for twitter. Without authentication.

Notifications You must be signed in to change notification settings

mrmertkose/twitter-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A PHP scraper for twitter. Without authentication.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages