summaryrefslogtreecommitdiff
path: root/engines.cfg_sample
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2014-01-05 14:06:52 +0100
committerDalf <alex@al-f.net>2014-01-05 14:06:52 +0100
commit3dc3fc77709d6f56cd42f748ae356e2915fa2286 (patch)
tree5003c415b5a33fe65b9cf008c44f6f176f02dac9 /engines.cfg_sample
parenta2928e8d8369f129303229d17dfabc896f59441d (diff)
[mod][fix] xpath engine simplified, yahoo engine never returns truncated urls
Diffstat (limited to 'engines.cfg_sample')
-rw-r--r--engines.cfg_sample14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines.cfg_sample b/engines.cfg_sample
index 27131e9dd..05593cea4 100644
--- a/engines.cfg_sample
+++ b/engines.cfg_sample
@@ -5,7 +5,7 @@ number_of_results = 1
[bing]
engine = bing
-locale = en-us
+locale = en-US
[cc]
engine=currency_convert
@@ -64,17 +64,17 @@ categories = social media
[urbandictionary]
engine = xpath
search_url = http://www.urbandictionary.com/define.php?term={query}
-url_xpath = //div[@id="entries"]//div[@class="word"]//a
-title_xpath = //div[@id="entries"]//div[@class="word"]//span//text()
-content_xpath = //div[@id="entries"]//div[@class="text"]//div[@class="definition"]//text()
+url_xpath = //div[@id="entries"]//div[@class="word"]/a/@href
+title_xpath = //div[@id="entries"]//div[@class="word"]/span
+content_xpath = //div[@id="entries"]//div[@class="text"]/div[@class="definition"]
[yahoo]
engine = xpath
search_url = http://search.yahoo.com/search?p={query}
results_xpath = //div[@class="res"]
-url_xpath = .//span[@class="url"]//text()
-content_xpath = .//div[@class="abstr"]//text()
-title_xpath = .//h3/a//text()
+url_xpath = .//h3/a/@href
+title_xpath = .//h3/a
+content_xpath = .//div[@class="abstr"]
suggestion_xpath = //div[@id="satat"]//a
[youtube]