-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.rb
30 lines (22 loc) · 1.37 KB
/
web.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true
SPIDER = spider do
free(:i).qsp("https://google.com/search?hl=en&tbm=isch", :q)
free(:sw).replace("https://en.wiktionary.org/wiki/{query}#Spanish", space: "_")
free(:rw).replace("https://en.wiktionary.org/wiki/{query}#Russian", space: "_")
free(:pw).replace("https://en.wiktionary.org/wiki/{query}#Portuguese", space: "_")
free(:ew).replace("https://en.wiktionary.org/wiki/{query}#Estonian", space: "_")
free(:sv).replace("https://sonaveeb.ee/search/unif/dlall/dsall/{query}?lang=en")
free(:auslan).qsp("https://find.auslan.fyi/search", :query)
free(:iben).qsp("http://dict.ibs.ee/translate.cgi?language=English", :word)
free(:ibet).qsp("http://dict.ibs.ee/translate.cgi?language=Estonian", :word)
%w(en es ru ja et de fi pt).permutation(2).each do |sl, tl|
free(:"#{sl}#{tl}").replace("https://translate.google.com/?source=osdd&sl=#{sl}&tl=#{tl}&text={query}&op=translate")
end
static(:adc).redirect("https://adc.hrzn.ee")
static(:ynab).redirect("https://app.ynab.com/")
static(:ing).redirect("https://www.ing.com.au/securebanking/")
static(:lhv).redirect("https://www.lhv.ee/ibank/cf/portfolio/view?vi=0")
static(:hi, :hello, :hey, :heya, :chewwo, :nyonk, :yawonk, :hola, :howdy, :ola, :oi, :"привет", :tere, :tervist, :tchau, :tšau, :hallo, :terve).message(<<~HTML)
Chewwo!!!! <span class='bunnywave'></span>
HTML
end