Update README.md

This commit is contained in:
Richard Mwewa
2023-10-12 14:26:47 +02:00
committed by GitHub
parent 118aecd3af
commit 3b9d04e333

View File

@@ -11,23 +11,27 @@ pip install facebook-downloader
```
### Note
> You will need to have the FireFox browser installed on your pc.
> You will need to have the FireFox browser installed and geckodriver properly set up.
# Docker
## Build the container
## Building from source
**1.** Clone the repository
```
docker build -t my-facebook-downloader .
git clone https://github.com/bellingcat/facebook-downloader
```
# Geckodriver setup
> This assumes you've cloned the repository with `git clone https://github.com/bellingcat/facebook-downloader`
## Linux
**1.** Navigate to the facebook-downloader directory
**2.** Navigate to the cloned repository
```
cd facebook-downloader
```
**2.** Find the `install.sh` script and run it
### Building the Docker container
```
docker build --tty my-facebook-downloader .
```
### Building the facebook-downloader package
#### Linux
Find the `install.sh` script and run it
```
./install.sh
```
@@ -35,24 +39,21 @@ cd facebook-downloader
## Windows
#### Windows
**1.** Navigate to the facebook-downloader directory
```
cd facebook-downloader
```
**2.** Find the `install.ps1` script and run it
Find the `install.ps1` script and run it
```
.\install.ps1
```
> The installation scripts will download and setup geckodriver, then install **facebook-downloader**.
# Usage
## Package
```
facebook_downloader <video-url>
```
# Docker
## Docker
```
docker run --tty --volume $PWD/downloads:/app/downloads my-facebook-downloader <facebook_video_url>
```