Wiki Famous People -*- mode: org -*-
Get a set of random people from Wikidata that meet the following criteria:
- Born on the year provided by rand()
- Has a pic on file
- Is not a sports figure
- The associated wiki article has a minimum of 20 inbound inter-wiki site links
After getting the list from Wikidata it will then use the Wikipedia API to get the text version of the article. For the blurb only the first 2 sentences are retained. Dump this into a txt file with the corresponding name.
After that, it will request a specific size image from Wikipedia so that we don’t get huge pictures and we have a set column with for later.
Using Image Magick, convert the pictures in SIXEL format for the terminal.
- Image Magick
- because I might want to add a border or post processing later
YOU NEED A TERMINAL THAT CAN DISPLAY SIXEL IMAGES
- Looks in ./wiki_pis for SIXEL
- Pick one from random
- CAT the corresponding txt file with TPUT
- CAT the SIXEL
The idea for this Frankenstein python script came from the fact that I wanted something like neofetch for interesting Wikipedia people. That way when ever I open my terminal I have a new interesting person to learn about.
- Check if ./wiki_pics is there
- Comment so stuff
- Format the blur better
- Add link to the blurb
- Make it fancier with imagemagick