A little python and bash script that takes as input a pokemon name and returns its sprite. With the -R flag it returns a random pokemon from any generation. Greatly inspired by rmccorm4's Pokefetch project. Thank you for the idea. Needs TheZoraiz 's ascii-image-converter in order to work.
As listed in the Requirements.txt file:
- Install TheZoraiz's ascii-image-converter
As explained in their repository's Installation section
- Beautiful Soup
pip install BeautifulSoup
pip install pypokedex
- Requests
pip install Requests
- Clone the repository
git clone https://github.com/belligerentcrow/pokeascii.git
- cd into the repository
cd ./pokeascii
run the .sh file with the name of a pokemon u want the ascii of with its name as a parameter
./pokesh.sh <NAME>
run the .sh file with the -R flag
./pokesh.sh -R
In any case, the script will download the png of the chosen pokemon in the ./output/imgs/ folder, and log the name of the pokemon you've searched in the ./output/log.txt file.
At this point in time, i haven't yet implemented a good error catcher in case of misspells or any of the sort. The output is getting logged. u can just delete it and the images if you dont want extra space on your machine for now.