A website that displays programming-related content scraped from the "The Profound Programmer" Tumblr blog.
This project creates a simple, browsable gallery of programming-related images and content sourced from The Profound Programmer Tumblr blog. It consists of:
- A Python script for scraping and downloading images from the Tumblr blog
- JavaScript functionality to manage and display the image data
- A responsive web interface for browsing the content
The site allows programmers to enjoy and share programming humor, insights, and wisdom in a clean, accessible format.
- Python 3.6 or higher
- A modern web browser
- Internet connection (for initial setup and content updates)
-
Clone this repository:
git clone https://github.com/yourusername/the-profound-programmer.git cd the-profound-programmer -
Install the required Python dependencies:
pip install -r requirements.txt -
Run the image downloader script to fetch content:
python script.pyThis will download images from the Tumblr blog to the
downloaded_imagesdirectory. -
Generate the image list file:
node generate-image-list.jsThis will create/update the
image-list.jsfile with metadata about the downloaded images.
To update the site with new content from the Tumblr blog:
-
Run the Python script again:
python script.py -
Regenerate the image list:
node generate-image-list.js
Simply open the index.html file in a web browser:
open index.html # macOS
# or
explorer.exe index.html # Windows
# or
xdg-open index.html # Linux
Alternatively, you can serve the files using a local web server:
python -m http.server
Then visit http://localhost:8000 in your web browser.
script.py- Python script for downloading images from the Tumblr blogrequirements.txt- Python dependenciesgenerate-image-list.js- JavaScript script that generates metadata for downloaded imagesimage-list.js- Contains the array of image data used by the websiteindex.html- The main HTML file that displays the contentdownloaded_images/- Directory containing all downloaded images from the Tumblr blog
- Content sourced from The Profound Programmer Tumblr blog
- Built with vanilla JavaScript, HTML, and CSS