WoW SearchFrom Enso Wiki
[edit] Overview: What is WoW Search?WoW Search is a python script that allows Enso users to search a handful of websites commonly used by World of Warcraft players. A few of the searchable websites include:
A full list can be found in the Builtin Commands section. [edit] Bugs / Comments[edit] Bugs
[edit] CommentsIf you find this useful, horrible, or something in between let me know theonlyalterego August, 6 2008 [edit] Builtin Commands
[edit] InstallationWoW Search requires that the following be installed and working:
Each of the above programs have their own set of requirements and installation instructions. Once they are working you should be able to install the WoW Search script by doing the following:
Once you've prerformed the installation steps above you should be able to use the command listed in the Builtin Commands section above. For information on configuring Windows to autostart Command Server see the Command_Server [edit] LicenseWoW Search - Enso Python Extension by theonlyalterego is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. [edit] DownloadYou can download the WoW Search - Enso Python Script @ command_wowsearch.py [edit] Code# # WoW Search - Enso Python Extension by theonlyalterego is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. # # License details here: http://creativecommons.org/licenses/by-nc-sa/3.0/ # from base import BaseCommand import time import urllib import threading import webbrowser class Command(BaseCommand): def __init__(self, *args): BaseCommand.__init__(self, *args) # # Help text # # This is the contents of the Enso HTML Help pages # self.wowHeader = "<h2>World of Warcraft Enso Search</h2>" self.wowFooter = "<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png\" /></a><br /><span xmlns:dc=\"http://purl.org/dc/elements/1.1/\" href=\"http://purl.org/dc/dcmitype/Text\" property=\"dc:title\" rel=\"dc:type\">WoW Search - Enso Python Extension</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"http://www.ensowiki.com/wiki/index.php?title=WoW_Search\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">theonlyalterego</a> is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>." self.wikiHelpText = self.wowHeader + "<h3>Wowwiki Search</h3><p>This will open the <a href=\"http://wowwiki.com/\">WoW Wiki</a> search results page.</p>" + self.wowFooter self.thottHelpText = self.wowHeader + "<h3>Thottbot Search</h3><p>This will open the <a href=\"http://thottbot.com\">Thottbot</a> search results page.</p>" + self.wowFooter self.armHelpText = self.wowHeader + "<h3>WoW Armory Search</h3><p>This will open the <a href=\"http://www.wowarmory.com\">World of Warcraft Armory</a> search results page.</p><p>Note: this does a general search</p>" + self.wowFooter self.petopiaHelpText = self.wowHeader + "<h3>Petopia Search</h3><p>This will open the <a href=\"http://petopia.brashendeavors.net\">Petopia (Brash Endeavors)</a> search results page.</p><p>Note: this searches via the simple search Name field, and as such some logical searches like 'cat' yield nothing but 'lion' will return the lions that are in the Cat family. This appears to be because petopia doesn't search the Family Column in a Name based search, BUT it will search other columns such as Zone, Known Skills, Level (not level range)</p>" + self.wowFooter self.curseHelpText = self.wowHeader + "<h3>Curse.com Addon Search</h3><p>This will open the <a href=\"http://curse.com\">Curse</a> World of Warcraft addons search results page.</p><p>Note: this only searches the addons section, and no other portion of curse.com</p>" + self.wowFooter # # Here is the listing of available commands: # # wow wiki - searches http://wowwiki.com # wow thott - searches http://thottbot.com # wow arm - searches http://wowarmory.com # wow pet - searches http://petopia.brashendeavors.net # wow curse - searches http://curse.com WoW Addons # self.newArbitraryCommand("wow wiki {Wowwiki Search Text}" , self._wowwiki , "Wowwiki.com Search" , self.wikiHelpText) self.newArbitraryCommand("wow thott {Thottbot Search Text}" , self._thottbot , "Thottbot.com Search" , self.thottHelpText) self.newArbitraryCommand("wow arm {Armory Search Text}" , self._armory , "Wowarmory.com Search" , self.armHelpText) self.newArbitraryCommand("wow pet {Petopia Search Text}" , self._petopia , "petopia.brashendeavors.net Search" , self.petopiaHelpText ) self.newArbitraryCommand("wow curse {Curse Addon Search Text}" , self._curse , "Curse Wow Addon Search" , self.curseHelpText ) # # wow wiki - searches http://wowwiki.com # def _wowwiki(self, wikiSearch): if len(wikiSearch) == 0: wikiSearch = self.getUnicodeSelection() if len(wikiSearch) == 0: self.displayMessage("<p>No search criteria found!</p><caption>Please type it in or select it!</caption>") else: # Setup all of the GET parameters params = { "go": "1", "search": wikiSearch } # Create the URL to be opened params = urllib.urlencode(params) url = "http://www.wowwiki.com/Special:Search?" + params # Open the user's browser to the website webbrowser.open(url) # # wow thott - searches http://thottbot.com # def _thottbot(self, thottSearch): if len(thottSearch) == 0: thottSearch = self.getUnicodeSelection() if len(thottSearch) == 0: self.displayMessage("<p>No search criteria found!</p><caption>Please type it in or select it!</caption>") else: # Setup all of the GET parameters params = { "s":thottSearch } # Create the URL to be opened params = urllib.urlencode(params) url = "http://thottbot.com/?" + params # Open the user's browser to the website webbrowser.open(url) # # wow arm - searches http://wowarmory.com # def _armory(self, armorySearch): if len(armorySearch) == 0: armorySearch = self.getUnicodeSelection() if len(armorySearch) == 0: self.displayMessage("<p>No search criteria found!</p><caption>Please type it in or select it!</caption>") else: # Setup all of the GET parameters params = { "searchQuery":armorySearch, "searchType": "all" } # Create the URL to be opened params = urllib.urlencode(params) #http://www.wowarmory.com/search.xml?searchQuery=archeonx&searchType=all url = "http://www.wowarmory.com/search.xml?" + params # Open the user's browser to the website webbrowser.open(url) # # wow pet - searches http://petopia.brashendeavors.net # def _petopia(self, petSearch): if len(petSearch) == 0: petSearch = self.getUnicodeSelection() if len(petSearch) == 0: self.displayMessage("<p>No search criteria found!</p><caption>Please type it in or select it!</caption>") else: # Setup all of the GET parameters params = { "q":"1", "search_term":petSearch } # Create the URL to be opened params = urllib.urlencode(params) url = "http://petopia.brashendeavors.net/html/browse/search_advanced.php?" + params # Open the user's browser to the website webbrowser.open(url) # # wow curse - searches curse.com wow addons # def _curse(self, curseSearch): if len(curseSearch) == 0: curseSearch = self.getUnicodeSelection() if len(curseSearch) == 0: self.displayMessage("<p>No search criteria found!</p><caption>Please type it in or select it!</caption>") else: # Setup all of the GET parameters params = { "q": curseSearch ,"s":"1" ,"x":"13" ,"y":"11" } # Create the URL to be opened params = urllib.urlencode(params) url = "http://wow.curse.com/downloads/addons/browse/?" + params # Open the user's browser to the website webbrowser.open(url) |

