In this recipe, we will show how to use Julia to obtain data from the internet, and how to extract information from web pages. We will write some sample code that extracts the number of stars from GitHub projects.
Fetching data from the internet
Getting ready
For this recipe, you need the following packages: HTTP.jl, Gumbo.jl, and Cascadia.jl. These packages can simply be installed with the Julia package manager. In the Julia command line (REPL), simply press ] key and run the following commands:
(v1.0) pkg> add HTTP
(v1.0) pkg> add Gumbo
(v1.0) pkg> add Cascadia
This will install the aforementioned packages and all their dependencies.
In the GitHub repository for this recipe, you will find the commands...