def legaSearch(widget,value): store=StoreConn("steamcommunity.com") while(1): try: print "[*] Legacy Finding "+value ilist=store.updateItemListLegacy(value) discoLegacy(ilist,widget) except: print sys.exc_info()[:2],"\n" print "[-] Some problems with legacy finder. Attempting to recreate connection" store.recon("steamcommunity.com")
def defaultSearch(widget,value): store=StoreConn("steamcommunity.com") while(1): try: print "[*] Default finding "+value ilist = store.updateItemList(value) discovery(ilist,widget) except: print sys.exc_info()[:2],"\n" print "[-] Some problems. Attempting to recreate connection" store.recon("steamcommunity.com")
def listStoreContents(widget,value): store = StoreConn("steamcommunity.com") widget.yellowTextVar.set("Loading Market Search...") store.stockFind(value) widget.redList.delete(0,tk.END) widget.redItems=[] for i in store.stock: j = i[21:] j = re.sub("%20"," ",j) widget.redList.insert(tk.END,j) widget.redItems.append(j) store.close() widget.yellowTextVar.set("OK!") return 0
def pipeDataToWidget(widget,index,value): store = StoreConn("steamcommunity.com") store.stockFind(value) while 1: try: print "[*] finding: "+store.stock[index] widget.yellowTextVar.set("Working") ilist = store.updateItemList(store.itemList[index]) discovery(ilist,widget) widget.yellowTextVar.set("Found!") except: print "[-] some problems. Attempting to reconnect" store.recon()