KO
|
EN
gitlite — search
Search
#python
#typescript
#tailwindcss
#nextjs
#golang
#ai
#docker
#nodejs
#javascript
#python3
#machine-learning
#mongodb
clojure-soup
★ 40
Open GitHub ↗
Clojurized access for Jsoup.
Download README (.md)
Explore Similar Repositories
watchtower
:
An example app built with Sinatra, Mustache and MongoDB
LaneDepartureWarning
:
Prototype of a Lane Departure Warning system - Final project for ECE847 and AuE835 classes
tori
:
Message boards portlet for Liferay.
BToolkit
:
The BToolkit, a toolkit supporting software development with the B-method.
sage_pay
:
Ruby implementation of the SagePay payment gateway protocol [unmaintained, deprecated]
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
clojure-soup
?
Download (.md)
# Clojure Soup Clojurized access for [Jsoup](http://jsoup.org/). [](https://clojars.org/clj-soup/clojure-soup) ## Examples Get some links of a web page: ```clojure (use 'jsoup.soup) ($ (get! "http://google.com" :user-agent "CoCo/1.0") ;; get request with options td "a[href]" ;; Jsoup selectors (attr "abs:href")) ;; attribute selector ``` Get all Emoji names concatenated by single bars from 'emoji-cheat-sheet.com': ```clojure ($ (get! "http://www.emoji-cheat-sheet.com/") "li div:has(span.emoji)" (text) (map #(clojure.string/replace % ":" "")) (clojure.string/join "|")) ``` Post with basic authentication: ```clojure ($ (post! "http://127.0.0.1" :user-agent "CoCo/1.0" :follow-redirects true :auth (basic-auth "night" "password") :cookies {:user "night" :other "value"} :data {:param "one" :another "2"}) ;; post options & data td a) ;; Jsoup selectors ``` Parse a local file: ```clojure ($ (slurp! "test-content.html" :encoding "UTF-8" :base-uri "http://base") "a[href]") ``` [](https://travis-ci.org/mfornos/clojure-soup) EOF