on master help sign in
[enh] urbandictionary xpath engine added
commit43f5fcea80fb22dd82be1de6c9bd4a9b1e09a0d5 authorasciimoo <asciimoo@gmail.com> dateSat 26 Oct 2013, 13:46 (13 years ago) parent5d764f9
1 file changed+8
engines.cfg_sample+8
engines.cfg_sample+8
@@ -5,6 +5,7 @@ number_of_results = 1
55
66[bing]
77engine = bing
8+language = en-us
89
910[deviantart]
1011engine = deviantart
@@ -47,6 +48,13 @@ engine = startpage
4748engine = twitter
4849categories = social media
4950
51+[urbandictionary]
52+engine = xpath
53+search_url = http://www.urbandictionary.com/define.php?term={query}
54+url_xpath = //div[@id="entries"]//div[@class="word"]//a
55+title_xpath = //div[@id="entries"]//div[@class="word"]//span//text()
56+content_xpath = //div[@id="entries"]//div[@class="text"]//div[@class="definition"]//text()
57+
5058[yahoo]
5159engine = xpath
5260search_url = http://search.yahoo.com/search?p={query}