Skip to content

Latest commit

 

History

History
107 lines (82 loc) · 3.17 KB

README.md

File metadata and controls

107 lines (82 loc) · 3.17 KB

PokeCHIP

Green Tea Licence Badge

Pokédex for PocketCHIP.

Usage

./displayAll_similar.sh ./displayAll_similar.sh -ihv search_query

Example:

./displayAll_similar.sh grass
Searching for Pokémon type, name or id similar to: grass
Number of similarities: 66
- ID: 1 | Name: "bulbasaur" | Type: grass
- ID: 2 | Name: "ivysaur" | Type: grass
- ID: 3 | Name: "venusaur" | Type: grass
- ID: 43 | Name: "oddish" | Type: grass
- ID: 44 | Name: "gloom" | Type: grass
- ID: 45 | Name: "vileplume" | Type: grass
- ID: 69 | Name: "bellsprout" | Type: grass
- ID: 70 | Name: "weepinbell" | Type: grass
- ID: 71 | Name: "victreebel" | Type: grass
- ID: 102 | Name: "exeggcute" | Type: grass
- ID: 103 | Name: "exeggutor" | Type: grass
- ID: 114 | Name: "tangela" | Type: grass
- ID: 152 | Name: "chikorita" | Type: grass
...

Usage

./displayAll.sh ./displayAll.sh

Example:

./displayAll.sh
- ID: 1 | Name: "bulbasaur" | Type: grass
- ID: 2 | Name: "ivysaur" | Type: grass
- ID: 3 | Name: "venusaur" | Type: grass
- ID: 4 | Name: "charmander" | Type: fire
- ID: 5 | Name: "charmeleon" | Type: fire
- ID: 6 | Name: "charizard" | Type: fire
- ID: 7 | Name: "squirtle" | Type: water
- ID: 8 | Name: "wartortle" | Type: water
- ID: 9 | Name: "blastoise" | Type: water
...

Usage

./search.sh ./search.sh -ihv dataset search_heading search_query

Example:

./search.sh pokemon.csv identifier $search_Name
{
    "base_experience": "64",
    "height": "7",
    "id": "1",
    "identifier": "bulbasaur",
    "is_default": "1",
    "order": "1",
    "species_id": "1",
    "weight": "69"
}

Usage

./namesearch.sh namesearch.sh -ihv search_query

Example:

./namesearch.sh mewtwo
Searching for Pokémon: mewtwo
________________________________________
| Info                                 |
|--------------------------------------|
| ID: 150 | Name: "mewtwo"
|--------------------------------------|
| Type: psychic
|--------------------------------------|
| H: "20" | W: "1220"
|--------------------------------------|
"It was created by
a scientist after
years of horrific
gene splicing and
DNA engineering
experiments."
|______________________________________|

Information:

There are some datasets that did not process correctly due to the maintainer of the original datasets (https://github.com/PokeAPI/pokeapi/tree/master/data/v2/csv) not implementing their CSV correctly- line breaks everywhere 😭.

Please see the file "datasets_to_be_fixed.txt" for datasets that processed with an error.

If you see that the dataset you want has an error, it's probably caused by either newlines or ending with the delimiter.

You can fix this with: sed '/[0-9],$/ s/$/null/'

You can also easily convert it without using the sometimes inaccurate tools in this repository by using: http://www.csvjson.com/csv2json