Git Product home page Git Product logo

twitter2mp4's Introduction

twitter2mp4

twitter2mp4 its a tool to download videos from Twitter. Needless of ffmpeg.

Here's what twitter2mp4 looks in action.

$ python twitter2mp4.py https://twitter.com/ImReeeK/status/1247980101435822088?s=09 -fn funny_video
[+] File successfully saved as funny_video.mp4 !

$ python twitter2mp4.py https://twitter.com/ImReeeK/status/1247980101435822088?s=09 -l
[+] Link: https://video.twimg.com/ext_tw_video/1247979567739879424/pu/vid/720x986/MgihvBG9E_2E-Y4I.mp4?tag=10

Setup

  1. Clone the repository
$ git clone https://github.com/hohohoesmad/twitter2mp4.git
  1. Install the dependencies
$ cd twitter2mp4
$ pip install -r requirements.txt
  1. Run twitter2mp4 (see Usage below for more detail)
$ python twitter2mp4.py

Usage

$ python twitter2mp4.py -h
usage:  [-h] [-d DIR] [-fn FILENAME] [-l] url

positional arguments:
  url                   The URL to the video you wanna download (ex. https://t
                        witter.com/bruhmoment/status/1247980101435822088?s=09)
                        .

optional arguments:
  -h, --help            show this help message and exit
  -d DIR, --dir DIR     The directory you wanna save the downloaded video/s
                        to.
  -fn FILENAME, --filename FILENAME
                        Custom filename for the downloaded video.
  -l, --link            Will output a direct URL to the video.

Example:

$ python twitter2mp4.py https://twitter.com/ImReeeK/status/1247980101435822088?s=09 -fn funny_video

Compatibility

Tested on Python 3.7 on Linux and Windows. Feel free to open an issue if you have bug reports or questions. If you want to collaborate, you're welcome.

twitter2mp4's People

Contributors

f-rog avatar

Stargazers

钟智强 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.