settings.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. server:
  2. port : 8888
  3. secret_key : "ultrasecretkey" # change this!
  4. debug : True
  5. request_timeout : 3.0 # seconds
  6. base_url : False
  7. engines:
  8. - name : wikipedia
  9. engine : mediawiki
  10. url : https://en.wikipedia.org/
  11. number_of_results : 1
  12. - name : bing
  13. engine : bing
  14. locale : en-US
  15. - name : currency
  16. engine : currency_convert
  17. categories : general
  18. - name : deviantart
  19. engine : deviantart
  20. categories : images
  21. - name : ddg definitions
  22. engine : duckduckgo_definitions
  23. - name : duckduckgo
  24. engine : duckduckgo
  25. locale : en-us
  26. - name : filecrop
  27. engine : filecrop
  28. categories : files
  29. - name : flickr
  30. engine : flickr
  31. categories : images
  32. - name : github
  33. engine : github
  34. categories : it
  35. - name : google
  36. engine : google
  37. - name : google images
  38. engine : google_images
  39. - name : piratebay
  40. engine : piratebay
  41. categories : videos, music, files
  42. - name : soundcloud
  43. engine : soundcloud
  44. categories : music
  45. - name : stackoverflow
  46. engine : stackoverflow
  47. categories : it
  48. - name : startpage
  49. engine : startpage
  50. base_url : 'https://startpage.com/'
  51. search_url : 'https://startpage.com/do/search'
  52. # +30% page load time
  53. # - name : ixquick
  54. # engine : startpage
  55. # base_url : 'https://www.ixquick.com/'
  56. # search_url : 'https://www.ixquick.com/do/search'
  57. - name : twitter
  58. engine : twitter
  59. categories : social media
  60. - name : urbandictionary
  61. engine : xpath
  62. search_url : http://www.urbandictionary.com/define.php?term={query}
  63. url_xpath : //div[@class="word"]//a/@href
  64. title_xpath : //div[@class="word"]//a
  65. content_xpath : //div[@class="definition"]
  66. - name : yahoo
  67. engine : xpath
  68. search_url : http://search.yahoo.com/search?p={query}
  69. results_xpath : //div[@class="res"]
  70. url_xpath : .//h3/a/@href
  71. title_xpath : .//h3/a
  72. content_xpath : .//div[@class="abstr"]
  73. suggestion_xpath : //div[@id="satat"]//a
  74. - name : youtube
  75. engine : youtube
  76. categories : videos
  77. - name : dailymotion
  78. engine : dailymotion
  79. locale : en_US
  80. categories : videos
  81. - name : vimeo
  82. engine : vimeo
  83. categories : videos
  84. results_xpath : //div[@id="browse_content"]/ol/li
  85. url_xpath : ./a/@href
  86. title_xpath : ./a/div[@class="data"]/p[@class="title"]/text()
  87. content_xpath : ./a/img/@src
  88. locales:
  89. en : English
  90. hu : Magyar
  91. fr : Français