diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-10-26 13:46:46 +0200 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-10-26 13:46:46 +0200 |
| commit | 43f5fcea80fb22dd82be1de6c9bd4a9b1e09a0d5 (patch) | |
| tree | be0146a32ea41147ff7be6ca837e81781ce4d4c1 /engines.cfg_sample | |
| parent | 5d764f95cf44ab4c1ba83d7055297e3c4ea48c98 (diff) | |
[enh] urbandictionary xpath engine added
Diffstat (limited to 'engines.cfg_sample')
| -rw-r--r-- | engines.cfg_sample | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines.cfg_sample b/engines.cfg_sample index c68147d78..cf019ed82 100644 --- a/engines.cfg_sample +++ b/engines.cfg_sample @@ -5,6 +5,7 @@ number_of_results = 1 [bing] engine = bing +language = en-us [deviantart] engine = deviantart @@ -47,6 +48,13 @@ engine = startpage engine = twitter 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() + [yahoo] engine = xpath search_url = http://search.yahoo.com/search?p={query} |