Skip to content

Social Acquire // Download Images and Videos from Facebook, YouTube and Instagram.

Notifications You must be signed in to change notification settings

DevItC/sacquire

Repository files navigation

FB-Downloader

App for Downloading Facebook videos and images

Running the app

  1. Install Google Chrome for Ubuntu

    $ wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    $ echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
    $ sudo apt-get update
    $ sudo apt-get install google-chrome-stable
  2. Install xvfb to run Chrome headlessly

    $ sudo apt-get install xvfb
  3. Download chromedriver and add it to path

    $ sudo apt-get install unzip
    $ wget -N http://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
    $ unzip chromedriver_linux64.zip
    $ chmod +x chromedriver
    $ sudo mv -f chromedriver /usr/local/share/chromedriver
    $ sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
    $ sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
  4. Install Redis server

$ sudo apt-get install redis-server
  1. Start a worker process

    $ python3 worker.py
  2. Start the Flask server

    $ export FLASK_APP=app.py
    $ flask run

NOTE: This two processes must run concurrently. I suggest that for now run these two in two different consoles.

Deploying on Heroku

$ heroku create
$ heroku config:add GOOGLE_CHROME_CHANNEL=stable
$ heroku buildpacks:set heroku/python
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-google-chrome.git
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-chromedriver.git
$ git push heroku master
$ heroku addons:create redistogo:nano
$ heroku ps:scale worker=1

About

Social Acquire // Download Images and Videos from Facebook, YouTube and Instagram.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published