Skip to content

ara303/twMediaDownloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

129 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important information - please read

Warning

Not in active development.

Chrome installation instructions. Firefox support is likely broken.

When the service formerly known as Twitter changed its primary domain name to X.com, the API was also moved (api.x.com) which broke this extension entirely.

This fork attempts to patch the extension to restore the basics that functioned prior to that domain name change. That is all this is.

Features relying on the public API, which was shut down before the domain name change, will not be restored. If you use this, expect your browser's dev console to show errors as functions of the plugin try to contact since-shutdown endpoints. Please don't open issues asking for broken functionality to be restored (but you can open PRs...! 😉).

This is a pet project, made for myself primarily. Despite the partial breakages, there was enough working here I found useful. It was the only extension I found that provided a one-click method to extract the URL of a video hosted on Twitter's servers, which I find much easier to work with and share around.

Tip

Bulk downloading is broken. If you must bulk download media, instead try twmd.

Installation is unintuitive but achievable. First, download your relevant binary. Once you've extracted it, try running twmd -u=<username> -a -L. It will return an error to you at first, but then let you provide the auth_token and ct0 values it needs to actually work the next time you re-run that command. In Chrome/Chromium, open a new X.com tab where you're logged in and let your timeline finish loading. Then right-click, go to Inspect > Application > Cookies > https://x.com, and copy the values for auth_token and ct0 in here.


From this point onwards, the readme is outdated! The original author removed the extension from the Chrome/Firefox extension sites so those links won't work.




Twitter メディアダウンローダ (twMediaDownloader)

  • License: The MIT license
  • Copyright (c) 2016 風柳(furyu)
  • 対象ブラウザ: Google Chrome、Firefox

Web 版公式 Twitter のメディア(画像/動画)を、原寸サイズでダウンロードするためのスクリプト。
※個別ツイートのメディアダウンロードについては、TweetDeck でも対応。

■ インストール方法

Chrome 拡張機能版

Google Chrome で、

Twitter メディアダウンローダ― - Chrome ウェブストア

より拡張機能を追加する。

Firefox Quantum (WebExtentions)版

Firefox Quantum で、

Twitter メディアダウンローダ – Firefox 向けアドオン

よりアドオンを追加する。

ユーザースクリプト版

Firefox+GreasemonkeyTampermonkey、Google Chrome+Tampermonkey の環境で、

Twitter Media Downloader for new x.com 2019

Twitter Media Downloader for TweetDeck

Twitter Media Downloader for old x.com (twMediaDownloader.user.js)

をクリックし、指示に従ってインストール。
※ Firefox では Quantum(57) + Greasemonkey 4 より動作しなくなった(代わりに Tampermonkey を使用すること)。

■ 使い方

Web 版公式 Twitter 上で、ユーザータイムラインや検索タイムラインを開くと、「メディア↓」のようなリンクが挿入される。
下向き矢印のリンク

これをクリックするとダイアログが表示されるので、[開始]ボタンをクリックすると、原寸画像/動画の ZIP 化が開始される。
※ ZIP 化の進捗は、下部にログ出力される。
ダイアログ

ZIP 化が完了するか、もしくは[停止]を押すと、対象となる画像/動画ファイルをまとめた ZIP ファイルがダウンロードされる。
※ ログの内容も ZIP の中に保存される。

必要に応じて、保存対象となるツイートの Tweet ID 範囲、および、ツイートの制限数を指定可能。
※デフォルト(範囲空白)の状態では、Tweet ID 範囲は全てで、ツイートの制限数にのみ制限される。

また、各メディア付ツイートにもダウンロード用のリンクが追加され、個別にダウンロードすることも可能。
※ Chrome 拡張機能の場合、この機能は ON/OFF できる。

■ 外部ライブラリなど

■ 関連記事

About

Fork that works with X.com. Download images of user's media-timeline on Twitter.

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • JavaScript 99.0%
  • Other 1.0%