Advertisement
Guest User

Untitled

a guest
Apr 25th, 2013
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #!/usr/bin/picolisp /usr/lib/picolisp/lib.l
  2. # 25apr13abu
  3.  
  4. (load "@lib/misc.l" "@lib/http.l")
  5.  
  6. (client "dict.leo.org" 80 (pack "?search=" (glue "+" (argv)))
  7. (out NIL
  8. (while
  9. (and
  10. (from
  11. "<td class=\"text\" lang=\"de\">"
  12. "<h2>Weitere Treffer</h2>" )
  13. (<> @ "<h2>Weitere Treffer</h2>") )
  14. (prinl
  15. (make
  16. (link (till "^J<" T))
  17. (while (and (till ">" T) (<> @ "</td"))
  18. (char)
  19. (link (till "^J<" T)) ) ) ) ) ) )
  20.  
  21. (bye)
  22.  
  23. # vi:et:ts=3:sw=3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement