← yt-playlist-export

renamed

2f884e8148fdce7d47bdb93e9a53f1428abf8c00 · Aleksandr Tabakov · Oct 11, 2023 21:07

+11 −11 · 2 files changed

  • README.md +9 −9
  • yt-playlist.py => yt-playlist-export.py +2 −2
diff --git a/README.md b/README.md
index 2ed2420..4e0e702 100644
--- a/README.md
+++ b/README.md
@@ -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
 ```
 
 ![YouTube playlist exported to CSV](/assets/format_csv.png)
@@ -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
 
diff --git a/yt-playlist.py b/yt-playlist-export.py
similarity index 93%
rename from yt-playlist.py
rename to yt-playlist-export.py
index 4352d46..12451e7 100755
--- a/yt-playlist.py
+++ b/yt-playlist-export.py
@@ -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 {