renamed
+11 −11 · 2 files changed
-
README.md+9 −9 -
yt-playlist.py => yt-playlist-export.py+2 −2
@@ -1,22 +1,22 @@ -# yt-playlist +# yt-playlist-export -yt-playlist is a tool that allows to export YouTube playlists, export YouTube "Watch later" list and export YouTube "Liked videos". It supports exporting to JSON and CSV formats. +yt-playlist-export is a tool that allows to export YouTube playlists, export YouTube "Watch later" list and export YouTube "Liked videos". It supports exporting to JSON and CSV formats. ## Installation ```bash -git clone https://github.com/daydiff/yt-playlist.git -cd yt-playlist +git clone https://github.com/daydiff/yt-playlist-export.git +cd yt-playlist-export python3 -m pip install -r requirements.txt ``` ## Usage ```bash -yt-playlist -h -usage: yt-playlist [-h] [--browser BROWSER] [-f {csv,json}] [-o OUTPUT] [-v] playlist [playlist ...] +yt-playlist-export -h +usage: yt-playlist-export [-h] [--browser BROWSER] [-f {csv,json}] [-o OUTPUT] [-v] playlist [playlist ...] -yt-playlist exports YouTube playlists to JSON or CSV +yt-playlist-export exports YouTube playlists to JSON or CSV positional arguments: playlist playlist URL @@ -34,7 +34,7 @@ optional arguments: ## Show case ```bash -yt-playlist https://www.youtube.com/playlist\?list\=PL0XfG7TzasxNCl8a-SdyvSoazX1VYBweF -f csv -o test.csv +yt-playlist-export https://www.youtube.com/playlist\?list\=PL0XfG7TzasxNCl8a-SdyvSoazX1VYBweF -f csv -o test.csv ```  @@ -42,7 +42,7 @@ yt-playlist https://www.youtube.com/playlist\?list\=PL0XfG7TzasxNCl8a-SdyvSoazX1 ## Dependencies -yt-playlist is using [yt-dlp](https://github.com/yt-dlp) under the hood. +yt-playlist-export is using [yt-dlp](https://github.com/yt-dlp) under the hood. ## Keywords @@ -6,7 +6,7 @@ import sys import json import yt_dlp -parser = argparse.ArgumentParser(description='yt-playlist exports YouTube playlists to JSON or CSV') +parser = argparse.ArgumentParser(description='yt-playlist-export exports YouTube playlists to JSON or CSV') parser.add_argument('--browser', type=str, required=False, default='firefox', help='browser where you logged in to YouTube') parser.add_argument('-f', '--format', type=str, choices=['csv', 'json'], required=False, default='csv', help='output\'s format') parser.add_argument('-o', '--output', type=str, required=False, help='filename to store output, by default it\'s printed to stdout') @@ -52,7 +52,7 @@ header = [ thumbnail_l, ] -# Converts ytl JSON structure to yt-playlist, in particular removing all not populated field +# Converts ytl JSON structure to yt-playlist-export, in particular removing all not populated field def convert_to_csv(info: any) -> any: for entry in info['entries']: yield {