Giter Club home page Giter Club logo

facebook-video-downloader's Introduction

Facebook Video Downloader

A simple and efficient tool for downloading Facebook videos using a custom API. This application fetches the video data from the API and downloads the HD version of the video, saving it with a sanitized filename.

Features

  • Download Facebook videos in HD quality.
  • Automatic filename sanitization.
  • Efficient download with progress tracking.

Requirements

  • Python 3.x
  • requests library
  • tqdm library

Installation

  1. Clone the repository:

    git clone https://github.com/JohnDev19/facebook-video-downloader.git
  2. Navigate to the project directory:

    cd facebook-video-downloader
  3. Install the required Python packages:

    pip install requests tqdm

Usage

  1. Run the application:

    python main.py
  2. Enter the Facebook video URL when prompted.

    The video will be downloaded to the Downloads folder with a sanitized filename.

Code Structure

  • main.py: Entry point for the application.
  • facebook_video_downloader.py: Contains the core functionality for downloading videos.
  • config.py: Contains configuration and constants.
  • utils.py: Contains utility functions for the project.

Example

Enter the Facebook video URL: https://www.facebook.com/yourvideoid
Fetching video data from API for URL: https://www.facebook.com/yourvideoid
Downloading video from: https://video-sea1-1.xx.fbcdn.net/yourvideo.mp4
Video downloaded successfully: Downloads/Your_Video_Title.mp4

Notes

  • Ensure that the Downloads folder is writable.
  • The video filename will be sanitized to avoid invalid characters.
  • For large videos, download times may vary based on network speed.

Contributing

Feel free to fork the repository and submit pull requests. For bug reports or feature requests, open an issue on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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.