Skip to content

Python3 script to pull album art and lyrics into a computer generated micrograph.

License

Notifications You must be signed in to change notification settings

Feehley/Album-Micrography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micrography

A Python3 script to pull album art and lyrics into a computer generated micrograph. Uses the lyricsgenius API for searching albums.

Shoutouts!

Setting up lyricsgenius API

Setup

[~]> pip3 install -r requirements.txt

Usage

Help Menu

[~]> python3 album_micrography.py -h
usage: album_micrography.py [-h] -a  -al [-f] [-fs]

Create monographs from albums!

optional arguments:
  -h, --help        show this help message and exit
  -a, --artist      Artist
  -al, --album.     Album Title
  -f, --font_style  Font Style
  -fs, --font_size  Font Size; Range: (5-50))
  -bg, --background Set Image Background Color to Black (for contrast)

Basic Usage

[~]> python3 album_micrography.py -a Daughters -al "You Won't Get What You Want"

Searching for "You Won't Get What You Want" by Daughters...
[+] Downloading album cover!
[+] Image saved to: ./YouWontGetWhatYouWant/album_art.jpg
[+] All lyrics written to: ./YouWontGetWhatYouWant/lyrics.jpg
[+] Saving Micrograph to: YouWontGetWhatYouWant/micrograph.png

Advanced Usage

Setting Font Style
[~]> python3 album_micrography.py -a lizzo -al "big grrrl small world" -f ./FreeMono.ttf

Searching for "big grrrl small world" by lizzo...
[+] Downloading album cover!
[+] Image saved to: ./biggrrrlsmallworld/album_art.jpg
[+] All lyrics written to: ./biggrrrlsmallworld/lyrics.jpg
[+] Saving Micrograph to: biggrrrlsmallworld/micrograph.png
Setting Font Size
[~]> python3 album_micrography.py -a 'ed Sheeran' -al divide -f ./FreeMono.ttf -fs 11

Searching for "divide" by ed Sheeran...
[+] Downloading album cover!
[+] Image saved to: ./divide/album_art.jpg
[+] All lyrics written to: ./divide/lyrics.jpg
[+] Saving Micrograph to: divide/micrograph.png
Setting Background Color to Black
[~]> python3 album_micrography.py -a 'rage against the machine' -al 'evil empire' -bg

Searching for "evil empire" by rage against the machine
[+] Downloading album cover!
[+] Image saved to: ./evilempire/album_art.jpg
[+] All lyrics written to: ./evilempire/lyrics.jpg
[+] Saving Micrograph to: evilempire/micrograph.png

Example Output

You Won't Get What You Want by Daughters

You Won't Get What You Want

Big Grrrl Small World by Lizzo

Big Grrrl Small World

Divide by Ed Sheeran

Divide

Divide by Ed Sheeran

Evil Empire

Follow on steps

  • Fix the words at the start of the image (the image starts in the middle of a sentence...)
  • Create subparsers to allow for books and other mediums as well

About

Python3 script to pull album art and lyrics into a computer generated micrograph.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages