Skip to content

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

License

Notifications You must be signed in to change notification settings

ara303/twMediaDownloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important information about this fork

Warning

This fork patches the extension after X/Twitter changed URLs site-wide from twitter.com to x.com on 16th May, 2024. Otherwise this extension was abandoned by its original author. Much of its functionality for bulk downloading media has been broken since X/Twitter turned off its public API in 2023.

I went through the files as I had to change all references to twitter.com to x.com. It seems X/Twitter even moved over all API calls to api.x.com, etc. That surely won't present problems.

Functionality which relied on the public API that was previously broken continues to be broken. The extension does dump various errors to the console as a result of trying to access endpoints since shutdown.

I did this largely for myself as despite being partially broken there was enough working here that I found useful. It is the only extension I've found that provides a one-click way to get a video's URL for sharing purposes, which I personally find easier to share than downloading.

The readme below is outdated. The original author removed the extension from the Chrome/Firefox extension sites so the links are dead.


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

Languages

  • JavaScript 99.0%
  • Other 1.0%