From c292504feff9d7af8b135cc93e3a580ae27e9b78 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Wed, 23 Nov 2011 15:24:41 +0100 Subject: [PATCH] config: Added example file for xkcd. --- config/xkcd.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 config/xkcd.yml diff --git a/config/xkcd.yml b/config/xkcd.yml new file mode 100644 index 0000000..b3ead86 --- /dev/null +++ b/config/xkcd.yml @@ -0,0 +1,10 @@ +--- +name: XKCD +home_url: http://xkcd.com/ +base_url: http://xkcd.com/ +image_xpath: //div[@id="middleContent"]//div[@class="s"]//img/@src +first_xpath: //div[@class="menuCont"][1]/ul/li[1]/a/@href +prev_xpath: //div[@class="menuCont"][1]/ul/li[2]/a/@href +next_xpath: //div[@class="menuCont"][1]/ul/li[4]/a/@href +last_xpath: //div[@class="menuCont"][1]/ul/li[5]/a/@href +sleep: 0.25