torunar / twitter-downloader
This package is abandoned and no longer maintained.
No replacement package was suggested.
Downloads media from Twitter account
v1.1.0
2021-11-16 07:58 UTC
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
- abraham/twitteroauth: ^3.1
- guzzlehttp/guzzle: ^7.4
- symfony/console: ^5.3
This package is auto-updated.
Last update: 2023-05-11 08:05:17 UTC
README
The project wasn't updated to new API version and is discontinued due to new Twitter Policies.
Use https://github.com/trevorhobenshield/twitter-api-client#scraping instead.
Downloads content of a specific Twitter account. Saves photos, videos and tweet texts for offline usage.
Installation
$ composer global require torunar/twitter-downloader
Configuration
To use Twitter Downloader, you'll need to register Twitter REST API application.
Apply for a developer account here: https://developer.twitter.com/en/apply-for-access.
Usage
$ twitter-downloader [options] [--] <api-key> <api-secret> <user> [<output-dir>]
Arguments
api-key
— REST API application consumer key.api-secret
— REST API application consumer secret.user
— User handle. E.g.:kojima_hideo
.output-dir
— Output directory. By default,/tmp/twitter-downloader/
used.
Options
-i
or--id[=ID]
— ID of tweets to load. E.g.:1460373093533511680
(multiple values allowed:-i=1460373093533511680 -i=1435497665232392192
).-m
or--media-type[=MEDIA-TYPE]
— Media types to load. Possible media types arephoto
,video
andtext
. By defaultphoto
andvideo
are downloaded (multiple values allowed:-m=photo -m=text
).-w
or--keyword[=KEYWORD]
— Keyword the tweet should contain to be downloaded. E.g.:death_stranding
(multiple values allowed:-w=death_stranging -w=mgs
).