Browse Source

[enh] yahoo xpath engine added

asciimoo 11 years ago
parent
commit
c09d69bd2c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      engines.cfg_sample

+ 8 - 0
engines.cfg_sample

@@ -47,6 +47,14 @@ engine = startpage
 engine = twitter
 categories = social media
 
+[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()
+
 [youtube]
 engine = youtube
 categories = videos