Extracts Pokémon team information from a https://pokepast.es/ URL.
Project description
pokepastes-scraper
A simple library that converts a Pokemon team from https://pokepast.es to an object in Python.
Installation
pip install -U pokepastes-scraper
Usage
Let's say we want to parse this team which Gavin Michaels used to win the Oceania World Championships. Simply call team_from_url
:
import pokepastes_scraper as pastes
team = pastes.team_from_url("https://pokepast.es/5c46f9ec443664cb")
for mon in team.members:
print(f"{mon.species} with {mon.item}")
Output:
Iron Hands with Assault Vest
Amoonguss with Sitrus Berry
Pelipper with Focus Sash
Palafin with Mystic Water
Baxcalibur with Dragon Fang
Dragonite with Lum Berry
For a detailed example output of team_from_url
, see test/example.py
and its output test/example_team.json
.
Tested in python 3.11, but likely compatible with 3.7+. Feel freet to contact me about functionality you would like implemented.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pokepastes_scraper-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430002358ed2b1de4c494f77ee9136f3ba5c328fe86067f7aef80794861ade37 |
|
MD5 | fdb20ea682154e560a2c2076a3963686 |
|
BLAKE2b-256 | 77e0887ebb46a89a96b4c50138e4b365b6fc51b66f54d5de6b0e99e300108a2a |