Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
(load "@lib/http.l")
|
||||
|
||||
(de yahoo (Query Page)
|
||||
(default Page 1)
|
||||
(client "search.yahoo.com" 80
|
||||
(pack
|
||||
"search?p=" (ht:Fmt Query)
|
||||
"&b=" (inc (* 10 (dec Page))) )
|
||||
(make
|
||||
(while (from "<a class=\"yschttl spt\" href=\"")
|
||||
(link
|
||||
(make
|
||||
(link (till "\"" T)) # Url
|
||||
(from "<b>")
|
||||
(link (till "<" T)) # Title
|
||||
(from "class=\"abstr\"")
|
||||
(from ">")
|
||||
(link # Content
|
||||
(pack
|
||||
(make
|
||||
(loop
|
||||
(link (till "<" T))
|
||||
(T (eof))
|
||||
(T (= "</div" (till ">" T)))
|
||||
(char) ) ) ) ) ) ) ) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue