O'Reilly logo
  • Leandro Gonçalves de Oliveira thinks this is interesting:

1. Write a function that takes a string as an argument and searches for it on Bing and Google using the slurp function. Your function should return the HTML of the first page returned by the search.


Cover of Clojure for the Brave and True


(defn search-on-bing [text] (slurp (str "https://www.bing.com/search?q=" text)))