An open API service indexing awesome lists of open source software.

https://github.com/jrkinch/pokemon_list

Project for scrapping Pokémon names.
https://github.com/jrkinch/pokemon_list

pandas python selenium

Last synced: about 1 year ago
JSON representation

Project for scrapping Pokémon names.

Awesome Lists containing this project

README

          

pokemon_list


Project for scrapping Pokémon names.

Data Source: "https://m.bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_National_Pok%C3%A9dex_number"

Project to extract pokemon list from website to an excel document.

Wanted to do a webscrapping project using Selenium.

 - Takes data from website and puts info into excel spreadsheet.

  - 'pokemon_output.xlsx' located in the 'pokemon_list/data' folder.

  - Has five columns; 'Pokedex', 'Image', 'Name', 'Type1', 'Type2':

   - 'Pokedex', Pokemon's number in the Pokedex.

   - 'Image', URL location of PNG on web.

   - 'Name', Pokemon's Name.

   - 'Type1', Element type of Pokemon.

   - 'Type2', Second element type of Pokemon, blank if None.


Installation:


1) Run pip install -r requirements.txt in the project folder or 'run_requirements.bat' from the 'scripts' folder.

2) Install the webdrivers for OS at "https://www.selenium.dev/downloads/".

 - Project has setup for Chrome and Firefox webdrivers but other could be added.

Getting Started:


Steps:

1) Put the 'pokemon_list' folder in any project.

2) Use from pokemon_list import pokemon_list in project.

3) Init the class then use the 'check_file_and_get_latest' function from module.

- Example:

pl = pokemon_list.PokemonList()
pl.check_file_and_get_latest()