Skip to content

Instantly share code, notes, and snippets.

View kuipumu's full-sized avatar

César Montilla kuipumu

View GitHub Profile
@kuipumu
kuipumu / addtitle2ytcsv.py
Last active August 1, 2023 17:33
Add video titles to Google Takeout Youtube CSV playlist.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Add video titles to Google Takeout Youtube CSV playlist.
This script will add video titles to Youtube videos on CSV playlists
exported from Google Takaout (https://takeout.google.com).
Example:
$ python addtitle2ytcsv.py input_playlist.csv output_playlist.csv
@kuipumu
kuipumu / wordcount.py
Created June 23, 2021 22:21
Get word count in document (plain text only) excluding words in a dictionary. A document in csv format is going to be created with each word and it's corresponding count.
#!/usr/bin/env python
"""wordcount.py
Get word count in document (plain text only) excluding words in a dictionary.
A document in csv format is going to be created with each word and it's corresponding count.
Example:
Select a document to count words from using the -i our --input parameter,
document must be in a plain text format, add a dictionary to exclude words to be counted
using the -d or --dictionary parameter. A file with csv format