Home

Awesome

Pokefetch

This is a script I'm working on to further my webscraping skills

Tools

Python 3

Bash

Serebii

Context

This script currently asks for the pokedex number of the pokemon you'd like to get information about, then it will get the picture and some related information such as type, abilities, weaknesses, etc.

I wanted to model the output to be similar to screenfetch and neofetch, two popular scripts to grab system information.

Alt text

Setup

Starting steps:

Clone this repository to a directory of your choice in the command-line:

git clone https://github.com/rmccorm4/pokefetch

Make sure you have all of the necessary third-party libraries described below

Python requests module

pip install requests

Python BeautifulSoup module

pip install bs4

catimg

On Arch Linux:

yaourt -S catimg

Otherwise, follow the instructions here: https://github.com/posva/catimg

Disclaimers

The "Gender" category that gets printed out uses ascii symbols and may not print properly depending on your terminal configurations.

Personally, I use adobe-source-code-pro-fonts and I make sure that my terminal's default encoding is UTF-8

Running the script:

./pokefetch.sh <pokemon_name>

Example below.

Current progress

This is what I have so far:

Alt text

However this requires a full-screen terminal in order to come out nicely.

To-do

Alt text