Welcome!
This script goes in tandem with my website files. It offers an easy to navigate GUI interface for managing my data.json
file, which contains the main content I promote on my website.
On my website I promote my filmmaking content, from films to screenplays. So with that put into perspective, the only content I am displaying are either videos or PDFs.
Most of my video content is hosted through YouTube or Vimeo – this script allows me to paste a video link (or a link to a playlist) and automatically fetch the data I need to display on my site (with only a few manual actions). It can generate a short preview file, for active hovering over a given video thumbnail. The code for which is driven in large part by my Video Preview Generator repo. It can also smart parse through a list of credits (essential for filmmaking) and correctly format the credits to my need.
It can do the same with PDFs, in terms of fetching data, albeit there is less data to fetch from a given PDF.
Local files and a wide range of sites are supported.
This script is highly specific to my use case, but if you would like to try out the script, a minimal install and usage guide is below.
- Python 3.7+
- ffmpeg
To install via Homebrew:
brew install python ffmpeg
- yt-dlp
- PyPDF2
- requests
To install via pip:
pip3 install yt-dlp PyPDF2 requests
mkdir content-entry-creator
cd content-entry-creator
wget https://raw.github.com/jethomps0n/Content-Entry-Creator/main/contentEntryCreator.py
Navigate to the script directory and run:
python3 contentEntryCreator.py
Should be pretty simple from there. Folder/file paths and other commonly variable data can be modified near the top of the script.
I'm going to be using this tool frequently, and I don't want to have to use the CLI every time I want to open this script. So I've created a very simple Automator script to launch the app for me.
- Choose "Application"
- Search for and select "Run Shell Script"
- In the text area on the right, paste the code below (replacing
/path/to/
with the path to the file/folder):/path/to/python3 /path/to/contentEntryCreator.py
- Save and run the application