A small app that, given a YouTube channel URL, will retrieve the video title, upload data, video duration and video link for all videos on that channel, sorted by upload date.
- Install Leiningen, if you haven't already done so
- Get a API Key
git clone [email protected]:quanticle/youtube-video-list
- Place the API key in
resources\client-key
- Build the jar with
lein uberjar
To run:
$ java -jar youtube-video-list-0.1.0-standalone.jar [-o OUTPUT_TYPE] <youtube_channel_url>
-o OUTPUT_TYPE
- Can be one of
screen
ortsv
- If
screen
, outputs video information in single-column format, suitable for a pager, such asless
- If
tsv
, outputs video information in a tab-delimited format, suitable for redirection into a file - If omitted, outputs in
screen
format
- Can be one of
$ java -jar youtube-video-list-0.1.0-standalone.jar "https://www.youtube.com/c/SpaceX"
I need to handle YouTube URLs of the form https://www.youtube.com/@<channel>
.
Copyright (C) 2023 Rohit Patnaik
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>