-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterface.py
33 lines (24 loc) · 912 Bytes
/
Interface.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from BlizzardAPI import BlizzardAPI
newObj = BlizzardAPI()
newObj.get_all_realms()
newObj.write_realms_to_file()
newObj.get_realm_id("Illidan")
newObj.get_all_auctions()
skygolem_id = newObj.get_item_id("Shadowghast Ingot")
print(skygolem_id)
print(newObj.is_stackable(skygolem_id))
print(newObj.get_item_price(skygolem_id))
def simple_interface():
user_in = input("What item are you looking for?: ")
loop_check = True
while loop_check == True:
curr_item = user_in1
curr_item_id = newObj.get_item_id(curr_item)
curr_item_cost = newObj.get_item_price(curr_item_id)
print(curr_item_cost)
user_in2 = input("Would you like to search for something else? ")
if user_in2 != "yes":
loop_check = False
break
user_in = input("What item are you looking for?: ")
#class Search_Interface():