GithubHelp home page GithubHelp logo

notfounderror / fb-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyberboysumanjay/fb-downloader

0.0 1.0 0.0 38 KB

App for downloading Facebook videos and images

Python 50.06% JavaScript 14.42% CSS 17.59% HTML 17.93%

fb-downloader's Introduction

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

fb-downloader's People

Contributors

aniket820 avatar maderana avatar sandboxhead avatar skulltech avatar techcentaur avatar

Watchers

 avatar

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.