Skip to content

πŸ“‘ Updated Python (3.X) bindings to the Guild Wars 2 Spidy API.

Notifications You must be signed in to change notification settings

aliceinpalth/pygw2spidy

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python (3.X) Bindings to the Guild Wars 2 Spidy API

This small Python module provides easy-to-use bindings to the Guild Wars 2 Spidy API. Originally created by Tynril for Python 2.X, this fork was created to update the original repository to use Python 3.X.

What is Guild Wars 2 Spidy?

Guild Wars 2 Spidy is a fan-made website that allows browsing the Black Lion Trading Post, which is the trading market of the Guild Wars 2 game. Its API allow to programatically access this data. Note that the data being accessed is the one fetched by Gw2Spidy, and not directly the one on ArenaNet's servers.

How to use it?

Simply put the gw2spidy.py module somewhere in your project, and import it with from gw2spidy import Gw2Spidy. You can then use the static methods of the Gw2Spidy class.

A basic test of the API would be to run a simple file with the following lines of code:

from gw2spidy import Gw2Spidy

print(str(Gw2Spidy.getItemData(19721)))

The number '19721' is the item ID for Globs of Ectoplasm. You can find an item's ID by navigating to its GW2Spidy page, and then looking in the URL. This would return all information from GW2Spidy regarding Globs of Ectoplasm: lowest sell order / highest buy order / rarity / icon image location, and more!

License

This module is provided under the MIT Open Source License. Meaning you're free to use it for anything as long as you keep my name and the copyright notice in the module file. Also, if the use of this module triggers a worldwide war, I'm not responsible.

Copyright (c) 2012 Samuel Loretan (tynril at gmail dot com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

πŸ“‘ Updated Python (3.X) bindings to the Guild Wars 2 Spidy API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%