Coder Social home page Coder Social logo

adamelso / albumgrab Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 4.0 83 KB

CLI tool to automatically crawl and download all photos on a media platform without having to visit and save each photo manually, saving time (and sanity) - Uses: PHP 7; V8 JS; Symfony 3 components; Blackfire Player

License: MIT License

PHP 82.43% Gherkin 17.57%

albumgrab's Introduction

Albumgrab - Automated photo album crawler and downloader

Build Status Scrutinizer Code Quality

UPDATE !

Sadly, the Facebook album download feature no longer works since the page structure has changed and so this tool is effectively useless at this time. However, new crawlers will be added for other sites, such as Instagram and Twitter.

Requirements

  • PHP 7.0 or greater
  • Composer
  • Git
  • cURL
  • V8
  • V8js PHP extension

Roadmap

  • At the moment it is only available as a command line utility, but could be available either as a website anyone can use, or an self-hosted installable web application.
  • Support Facebook, Twitter and Instagram.
  • This project will be split out into different packages.
  • The installation process will be simplified by downloading a single packaged executable (PHAR).

Install

$ git clone https://github.com/adamelso/albumgrab
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Usage (currently not functional)

Enter the Albumgrab directory

$ cd albumgrab

Then execute the app

$ bin/albumgrab download

You will then be prompted to provide the folder/directory name you want the images to be saved to, followed by the URL/link to first image in the album.

Please enter the name of the directory your images will be saved to:
    images/summer-2014
Please enter the URL to the first image of the Facebook Photo Album you would like to download:
    https://facebook.com/photo.php?fbid=11111&set=a.222.333.444

Not using Facebook in English

The crawler will look for a link labeled Next to find the next image. If your Facebook is in another language, please run the command using the -x or --next option, with the equivalent word for Next in your language.

Example for Spanish:

$ bin/albumgrab download --next="Siguiente"

or

$ bin/albumgrab download -x Siguiente

IMPORTANT

Please use responsibly and at your own risk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.