Giter VIP home page Giter VIP logo

pokemon's Introduction

Pokémon Assets

Offline Made with

The highest quality Pokemon images.

Also it contains a smaller version of the dataset from PokeAPI for offline usage (Which I used in my web app).

This repository will be available as a public host for the highest quality Pokemon Images.

Sugimori Artwork to begin with.

Built to serve the PokéAPI in the future.

Main source is Bulbapedia for Images.

Currently Available:

All Forms Included

  • Upto Gen VIII (Compressed)
  • Upto Gen VIII HQ (Original Quality)
  • Thumbnails
  • DataSet from PokeAPI : Pokemon, Pokemon-Species, Moves, Abilities etc. in CSV and JSON format.

Source

WebScrapped from: Bulbapedia

Getting Started:

For Fetching Images: Generate URLs like this : https://raw.githubusercontent.com/HybridShivam/Pokemon/master/assets/images/001.png https://raw.githubusercontent.com/HybridShivam/Pokemon/master/assets/images/006-Gigantamax.png

Programmatically fetch base forms:

this.pokemonImageUrl = 'https://raw.githubusercontent.com/HybridShivam/Pokemon/master/assets/images/' + 
                        this.pad(this.pokemon.id, 3) + '.png';

Pad method:

pad(number, length) {
    let str = '' + number;
    while (str.length < length) {
      str = '0' + str;
    }
    return str;
  }

For Forms: Remember to follow Capital Casing with seperation with '-' e.g. 254-Mega , 800-Dawn-Wings, 792-Full-Moon-Phase, 569-Gigantamax, 413-Sandy, 006-Mega-X, 025-Rock-Star etc.

For the Scraping Image URLs from Bulbapedia:

Just clone the repo or download just the src files.

# Install Required Libraries first
python -m pip install requests
python -m pip install beautifulsoup4

# ImageScrapper.py
For Scrapping the URLs to URLs.txt and the exceptional URLs to failed.txt

# Downloader.py
For Downloading images with their id to src/downloads/***.png

# URLs.txt
Contains all the pokemon URLs

# Failed.txt
Contains all the exceptional URLs which can't be fetched due to exceptional naming in their page names like Mr. Mime's
https://bulbapedia.bulbagarden.net/wiki/File:122Mr._Mime.png

For Generating the DataSet from PokeAPI:

  1. Just clone the repo or download just the src files.
  2. Run src/generateDataSet.py to generate and Download the dataset.

Copyright Notice

Please note everything in this repository is copyrighted by the Pokémon Company and its affiliates. This repository is merely a compilation of data collected by the editors of Bulbapedia and Data from Veekun and PokeAPI.

pokemon's People

Contributors

hybridshivam avatar

Watchers

James Cloos avatar

Forkers

rxwustl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.