Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tufayellus/twitter-tweet-scraper-api-php
A PHP curl based Twitter tweets scraper API developed by Tufayel Ahmed
https://github.com/tufayellus/twitter-tweet-scraper-api-php
tweets twitter twitter-api twitter-scraper twitter-scraper-php twitter-scraping
Last synced: 8 days ago
JSON representation
A PHP curl based Twitter tweets scraper API developed by Tufayel Ahmed
- Host: GitHub
- URL: https://github.com/tufayellus/twitter-tweet-scraper-api-php
- Owner: TufayelLUS
- License: gpl-3.0
- Created: 2020-11-04T16:46:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-04T17:14:38.000Z (about 4 years ago)
- Last Synced: 2024-11-23T18:27:32.972Z (2 months ago)
- Topics: tweets, twitter, twitter-api, twitter-scraper, twitter-scraper-php, twitter-scraping
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter Tweet Scraper API using PHP
A php curl based twitter tweets scraper API developed by Tufayel Ahmed# Purpose
This API was built for those who wants to collect tweets programmatically from profiles or those who wants to delete their twitter account but wants to backup their tweets.# Some Helpful Information
* There are 20 tweets returned per each request made.
* Twitter has rate limiting feature, so don't plan to go mad.
* I am not hosting this API just to play safe.
* To bypass rate limit, implement rotating proxies if you plan to use it in production level.# Documentation
## GET /tweets.php
### Parameter:
username
- twitter username of target account (required)
nextPageCursor
- token for accessing next tweets/pagination (not required for initial API call, required for accessing next pages)
### Example:
* For accessing first page:
/tweets.php?username=tufayel_cse
### Sample Response:{
"tweets":["tweet body here", "another tweet body here"],
"nextPageCursor":"HBaGwLrlrJv63SAAAA=="
}* For accessing next pages and so on(set nextPageCursor value received in previous request):
/tweets.php?username=tufayel_cse&nextPageCursor=HBaGwLrlrJv63SAAAA==
### Sample Response:{
"tweets":["next page tweets"],
"nextPageCursor":"HBaGwvdfgfv63SAAAA=="
}