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.
- Host: GitHub
- URL: https://github.com/jrkinch/pokemon_list
- Owner: jrkinch
- Created: 2025-03-23T09:59:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-30T18:49:46.000Z (about 1 year ago)
- Last Synced: 2025-03-30T19:34:00.005Z (about 1 year ago)
- Topics: pandas, python, selenium
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()