Skip to main content

Python package to extract YouTube video titles and corresponding URLs for a specific channel and write the information to CSV and txt files with sections to mark a particular video as watched, to mark a video for rewatching, and for taking notes.

Project description

python3.6+ Quick Start

This package uses f-strings (more here) and as such requires Python 3.6+. If you have an older version of Python, you can download the Python 3.8.2 macOS 64-bit installer, Windows x86-64 executable installer, Windows x86 executable installer, or the Gzipped source tarball (most useful for Linux) and follow the instructions to set up Python for your machine. If you want to install a different version, visit the Python Downloads page and select the version you want.

Once you do that, enter the following in your command line:

# if something isn't working properly, try rerunning this
# the problem may have been fixed with a newer version

pip3 install -U yt-videos-list # MacOS/Linux
pip install -U yt-videos-list  # Windows

Running the package from the python interpreter

python3 # MacOS/Linux
python  # Windows
from yt_videos_list import ListCreator

my_driver = 'firefox' # SUBSTITUTE THE DRIVER YOU WANT
lc = ListCreator(driver=my_driver, scroll_pause_time=0.8)

# "user" channel_type (example uses Corey Schafer):
lc.create_list_for(url='https://www.youtube.com/user/schafer5')

# "channel" channel_type (example uses freeCodeCamp) along with the optional file_name argument:
lc.create_list_for(url='https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ', file_name='freeCodeCamp_org')

# see the new files that were just created:
import os
os.system('ls -lt | head')                  # MacOS/Linux
os.system('dir /O-D | find "_videos_list"') # Windows

# for more information on using the module:
help(lc)
  • options for my_driver include:
    • my_driver = 'firefox'
    • my_driver = 'opera'
    • my_driver = 'safari'
    • my_driver = 'chrome'
    • my_driver = 'brave'
    • my_driver = 'edge' (Windows only!)
  • increase scroll_pause_time for laggy internet and decrease scroll_pause_time for fast internet

More API information

Usage Statistics

Back to main page

If you found this interesting or useful, please consider starring this repo so other people can more easily find and use this. Thank you!!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt_videos_list-0.4.2.tar.gz (21.5 kB view details)

Uploaded Source

File details

Details for the file yt_videos_list-0.4.2.tar.gz.

File metadata

  • Download URL: yt_videos_list-0.4.2.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for yt_videos_list-0.4.2.tar.gz
Algorithm Hash digest
SHA256 b7aabf500e3a8c19d31cb924b5b7b810d7c0078d65053af897e920d7bce65965
MD5 dc75b36e96abf7209123eb2d4b115704
BLAKE2b-256 f1aacb3565d123c490c1ef40c55419df58e27202914e76dd597cc7f0d6d60ac0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page