This API is not created, supported, or endorsed by Grey Havens
Unofficial Python bindings for the Yoweb Browser. My goal is to match all capabilities of the existing browser. A few of the features I currently support are:
- Pirate Page
- Affiliations
- Piracy/Carousing/Crafting Skills
- Reputation
- Familiars
- Hearties
- Crew Page
- Affiliations
- Fame/Rank/Founded Info/Public Statement
- Reputation
- Politics
- Booty Shares
- Ship Restocking
- Active Mates
- Members/Member Ranks
git clone https://github.com/DirtyCajunRice/python-YowebAPI.git
cd python-YowebAPI
python3
from yoweb import base
OCEAN_NAME = 'Obsidian'
PIRATE_NAME = 'Cajun'
CREW_ID = 5000435
OCEAN = base.Ocean(OCEAN_NAME)
PIRATE = OCEAN.getpirate(PIRATE_NAME)
CREW = OCEAN.getcrew(CREW_ID)
# Example 1: Get a pirate's piracy skill in carpentry:
>>> PIRATE.skills.piracy.carpentry.ocean_wide
'Renowned'
>>> PIRATE.skills.piracy.carpentry.archipelago
'Master'
>>> PIRATE.skills.piracy.carpentry.experience
'Solid'
# Example 2: Get a pirate's flag information
>>> PIRATE.affiliations.flag.name
'Consider it Sunk'
>>> PIRATE.affiliations.flag.rank
'Lord'
# Example 3: Get a crew's current active mates count
>>> CREW.active_mates.jobbing_pirate
5
>>> CREW.active_mates.officer
67
# Example 4: Get a crew's current captain and info
>>> CREW.members.captain
[<Pirate:Scar>]
>>> CREW.members.captain[0].name
'Scar'
# Example 5: Update a crew/pirate on the fly
>>> CREW.update()
>>> PIRATE.update()