Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sdushantha/facebook-dl

📼 Very minimal Facebook downloader written in 28 lines of Python code (not including comments and blank spaces)
https://github.com/sdushantha/facebook-dl

cli codegolf command-line commandline-tool downloader facebook facebook-dl linux macos python python3 video

Last synced: 18 days ago
JSON representation

📼 Very minimal Facebook downloader written in 28 lines of Python code (not including comments and blank spaces)

Awesome Lists containing this project

README

        

# facebook-dl


Very minimal Facebook downloader written in 28 lines of Python code (not including comments and blank spaces)



[![Support me!](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/XoJfSVI)

## Installation

```bash
# clone the repo
$ git clone https://github.com/sdushantha/facebook-dl.git

# install the requirements
$ pip3 install -r requirements.txt
```

## Usage
```
usage: facebook-dl.py [-h] url [resolution]
```

---
Download video in High Definition.
```bash
$ python3 facebook-dl.py https://www.facebook.com/McLaren.Racing/videos/10155088130291413 hd
```
OR
```bash
# Without mentioning the resolution will also download in HD
$ python3 facebook-dl.py https://www.facebook.com/McLaren.Racing/videos/10155088130291413
```
Download video in Standard Definition.
```bash
$ python3 facebook-dl.py https://www.facebook.com/McLaren.Racing/videos/10155088130291413 sd
```

## License
MIT License

Copyright (c) 2018 Siddharth Dushantha