Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Yahoo-search-interface/TXR/yahoo-search-interface.txr
Normal file
22
Task/Yahoo-search-interface/TXR/yahoo-search-interface.txr
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/txr -f
|
||||
@(next :args)
|
||||
@(cases)
|
||||
@ QUERY
|
||||
@ PAGE
|
||||
@(or)
|
||||
@ (throw error "specify query and page# (from zero)")
|
||||
@(end)
|
||||
@(next (open-command "!wget -O - http://search.yahoo.com/search?p=@QUERY\&b=@{PAGE}1 2> /dev/null"))
|
||||
@(all)
|
||||
@ (coll)<a class="yschttl spt" href="@URL" @/[^>]+/>@TITLE</a>@(end)
|
||||
@(and)
|
||||
@ (coll)<div class="@/abstr|sm-abs/">@ABSTR</div>@(end)
|
||||
@(end)
|
||||
@(output)
|
||||
@ (repeat)
|
||||
TITLE: @TITLE
|
||||
URL: @URL
|
||||
TEXT: @ABSTR
|
||||
---
|
||||
@ (end)
|
||||
@(end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue