Git Product home page Git Product logo

dvid's Introduction

dvid.py

Python program that automatically downloads a single video from a URL saved in the clipboard or a list of videos from various URLs saved in a text file.

Table of contents

1. Description

dvid.py is a Python program that allows to download videos from various URLs. The software currently supports videos hosted on following platforms:

  • YouTube
  • Instagram
  • Twitter
  • Facebook
  • LinkedIn
  • TikTok
  • Twitch
  • Vimeo
  • Dailymotion
  • 20 Minuten
  • Pinterest

In case a video doesn't come from one of the above-mentioned websites, the program still tries to download it using a default method based on the youtube_dl Python package.


Important points to notice:

  • Regarding Instagram posts, the program only downloads ".mp4" files. It does NOT download ".jpg" files (i.e. pictures and thumbnails).
  • Verifying the availability of Instagram posts requires Instagram account credentials. These can be automatically retrieved in the instagram_downloader function by creating an instagram_credentials.txt file in the utils folder with your username and password on respectively the first and second line.
  • Downloading private Facebook videos requires Facebook account credentials. These can be automatically retrieved in the facebook_downloader_1 function by creating a facebook_credentials.txt file in the utils folder with your email_address and password on respectively the first and second line.
  • The current date is added at the beginning of the name of each video.
  • The corresponding URL of each video is copied to the "Comments" section of the video file meta information.

dvid-gif

2. Getting started

2.1 Dependencies

  • Tested on macOS Big Sur version 11.0.1
  • Python 3.7

2.2 Installing

pip install -r requirements.txt

2.3 Executing program

  • To access useful help messages, type following Terminal command at the root of the project:

    python3.7 dvid.py -h

  • To download a single video from a URL saved in the clipboard, issue following command at the root of the project:

    python3.7 dvid.py

    The program will automatically get the clipboard stored URL and download its attached video.

  • To download videos from a list of various URLs, create a text file containing all the URLs you are interested in. Make sure each URL is separated by a line break, get the path of the text file and issue following command at the root of the project:

    python3.7 dvid.py --textFilePath /path/to/your/text/file/my_text_file.txt

    The program will automatically scroll through the list of URLs. For each URL, it will determine the source platform and retrieve the video using a dedicated method.

3. Version history

  • 0.1
    • Initial release

dvid's People

Contributors

antho1426 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

iamprofessorex

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.