Skip to content

Commit

Permalink
0.6.7: Fix pip installation problem and improve features & performance
Browse files Browse the repository at this point in the history
- **BUGFIX**
  - fix `pip` installation problem due to incorrectly formatted
    version specifiers
  - update video duration extraction to correctly
    extract the duration of each video and avoid
    writing 'N/A'

- **FEATURE IMPROVEMENTS**
  - improve identification of seen videos in csv files by
    - avoiding potentially brittle regular expression matching
    - parsing each row of the csv file and extracting the
      (Video ID|Video URL) value from the corresponding column directly
  - normalize whitespace to avoid including newlines,
    carriage returns, and multiple consecutive whitespace characters
    in the video title
  - improve logging messages by including `time.time()` and
    `time.perf_counter()` when logging the time taken to perform
    an operation

- **PERFORMANCE IMPROVEMENTS**
  - increase write efficiency by completely avoiding writing to a
    temporary file when no new videos found for an existing file

- **INTERNAL IMPROVEMENT**
  - the following change does not affect the functionality of the program
    - add unit tests for the video title whitespace normalization
  • Loading branch information
shailshouryya committed Nov 11, 2023
1 parent e3e865c commit 12a3ef6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/dev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .custom_logger import log, log_time_taken


__version__ = '0.6.6'
__version__ = '0.6.7'
__email__ = 'yt.videos.list@gmail.com'


Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name = 'yt_videos_list',
version = '0.6.6',
version = '0.6.7',
description = 'YouTube bot to make a YouTube videos list (including all video titles and URLs uploaded by a channel) with end-to-end web scraping - no API tokens required. 🌟 Star this repo if you found it useful! 🌟',
long_description = long_description,
long_description_content_type = 'text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion python/yt_videos_list/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .custom_logger import log, log_time_taken


__version__ = '0.6.6'
__version__ = '0.6.7'
__email__ = 'yt.videos.list@gmail.com'


Expand Down

0 comments on commit 12a3ef6

Please sign in to comment.