Kamu bisa mendengarkan dan download lagu MP3 063 - Web scraping with Enlive - Practicalli Clojure secara gratis di lagu123.biz. Jangan lupa untuk membeli kaset dan CD original serta menjadikan lagu ini sebagai ringtone kamu.
Data lagu:
All content for Practicalli is created in my own time and non-commercially. Support Practicalli broadcasts
Scraping the web with Clojure
This week we will look at the basics of scraping the web with Clojure. There are plenty of tools to do this, however, we will look at using the Enlive library to understand how it works.
Code from the broadcast:
The code project uses Clojure CLI and deps.edn. If you need to install this, take a look at:
Enlive can be used for generating dynamic content for server side web applications using templates. Templates are written in HTML and Clojure code uses Selectors (HTML tags and CSS styles) to inject data dynamically into the templates, making dynamically generated web pages.
This selector based approach is very useful for extracting specific content from web pages, making web scraping much easier.
We will walk though the basics of Enlive and scraping a few sites to see what can be achieved.
I will also show how a simple way to cache the website you are scraping in Clojure, so you dont keep hitting the website unnecessarily.
All videos from the Practicalli study guide are available on the playlist