GEw
GEw is a Old School Runesacpe Grand Exchange API wrapper.
How to Use
install the pip package:
pip install gew
add this to the top of your program:
import gew
the following generic properties will be retrieved from the api:
- icon
- icon_large
- id
- type
- typeIcon
- name
- description
- members
- price
properties about marketing trends:
-
today
- today_trend
- today_price
-
current
- current_trend
- current_price
-
three months ago
- ThreeMonths_trend
- ThreeMonths_change
-
six months ago
- SixMonth_trend
- SixMonth_change
Example
item = gew.exchange.Item(4151)
print(item.price) # 2.4m
print(item.name) # "Abbysal Whip"
print(item.SixMonth_trend) # "positive"
print(item.SixMonth_change) # "+9.0%"
Additionally you can use the ItemList module to match item IDs to names.
item_id = gew.ItemList.get_id("Bucket of wax") # 30
item_name = gew.ItemList.get_name(30) # "Bucket of wax"