Git Product home page Git Product logo

twittervideotools's Introduction

This project is deprecated. Please look at https://github.com/code-yeongyu/twitter_video_tools_v2

Twitter Video Tools

PyPI version Test codecov

  • A multi-processing supported video downloader
  • supports downloading videos from twitter (or specific user from twitter) && monsnode.

Install

with PIP

pip install twitter-video-tools

with Poetry

poetry add twitter-video-tools

Usage

Command line

python3 -m twitter_video_tools [link]

Supported link types:

Python Embedding

from twitter_video_tools import TwitterVideoTools

with TwitterVideoTools() as twitter_video_tools:
    twitter_video_tools.download_from_user('twtvtOfficial')

Contribution

Prerequisites

  • Python 3.9
  • poetry
  • code editor (vscode recommended)

Overview of Development Environments

All-in-one

gh repo clone code-yeongyu/twitter_video_tools
python3 -m pip install poetry
poetry install # install dependencies
code --install-extension emeraldwalk.RunOnSave # to force single quote
code --install-extension tamasfe.even-better-toml # for handling toml

Done!

Test

poetry shell
inv test

Inspirations

  • Inspired me to start this project. yt-dlp is a fork project of youtube-dl.
  • Since the cookie option of yt-dlp's twitter extractor is not working, I decided to make my own project, using browser automation.
  • Microsoft's browser automation module.
  • Another major project to made me to start this project. I made up my mind to make TwitterVideoTools to experience playwright.
  • It would be so painful to imagine making this project with selenium, but I enjoyed a lot while writing the twitter crawler part thanks to playwright.
  • Ever since I started this project, I always wanted to support CLI with typer's awesome development experience.
  • TwitterVideoTools' CLI is written with typer, and it is so beautiful and easy to use at the same time.
  • These three tools helped me to write fully-typed python code.
  • I won't start my python project without these tools.
  • I made this template to make my python project development experience better.
    • Safe & Convient development environment
      • Strict type checking
      • Amazing linters & formatters
      • Unit test supported
  • This project is also based on this template.

twittervideotools's People

Contributors

code-yeongyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

finalxcode

twittervideotools's Issues

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.