seregazhuk / tumblr-downloader
PHP library to grab images from Tumblr blogs
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 3
Open Issues: 0
Type:package
Requires
- php: >=5.5.9
- symfony/console: ^3.1
- tumblr/tumblr: ^0.2.0
This package is auto-updated.
Last update: 2024-10-16 04:04:57 UTC
README
Installation
The recommended way to install this library is via Composer. New to Composer?
composer require seregazhuk/tumblr-downloader
Quick Start
Script
require "vendor/autoload.php"; use Tumblr\API\Client; use seregazhuk\TumblrDownloader\Downloader; $client = new Client( 'YourConsumerKey', 'YourConsumerSecret', 'YourToken', 'YourSecret' ); $downloader = new Downloader($client); $downloader->save('some_blog.tumblr.com');
Console command
You can also use console command tumblr-downloader
in your terminal. Setup your API
credentials in config.php
file, and you are ready to go:
return [ 'consumer_key' => 'YourConsumerKey', 'consumer_secret' => 'YourConsumerSecret', 'token' => 'YourToken', 'token_secret' => 'YourSecret', ];
This command will start downloading images from catsof.tumblr.com
blog:
$ ./tumblr-downloader save catsof.tumblr.com