# \[ANN\] Harbest.jl v0.4 - Simple Web Scraping

**URL:** <https://discourse.julialang.org/t/ann-harbest-jl-v0-4-simple-web-scraping/100894>\
**Category:** Package Announcements\
**Tags:** package, dataframes\
**Created:** [June 27, 2023, 2:41pm UTC](https://discourse.julialang.org/t/ann-harbest-jl-v0-4-simple-web-scraping/100894 "2023-06-27T14:41:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Diaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jose_diaz/32/43750_2.png) [@Jose\_Diaz](https://discourse.julialang.org/u/Jose_Diaz)\
**Post date:** [June 27, 2023, 2:41pm UTC](https://discourse.julialang.org/t/ann-harbest-jl-v0-4-simple-web-scraping/100894/1 "2023-06-27T14:41:50Z")

</div>

## Harbest.jl v0.4

[Harbest.jl](https://github.com/jdiaz97/Harbest.jl) is a package that allows to perform simple web scraping

### What’s new?

- html\_table function
- different and cleaner html\_text3 output
- html\_elements function now allows Vector[String} as an argument
- actual documentation
- improved docstrings

### Example

```julia
using Harbest

starwars = read_html("https://rvest.tidyverse.org/articles/starwars.html")

titles = html_elements(starwars, ["section", "h2"]) |> html_text3
titles
# 7-element Vector{String}:
# "The Phantom Menace"
# "Attack of the Clones"
# "Revenge of the Sith"
# ⋮
# "Return of the Jedi"
# "The Force Awakens"

html = read_html("https://en.wikipedia.org/w/index.php?title=The_Lego_Movie&oldid=998422565")
table = html_elements(html, ".tracklist") |> html_table
table
# 28×4 DataFrame
# Row │ No. Title Performer(s) Length 
# │ String String String String 
# ─────┼──────────────────────────────────────────────────────────────────────────────────────
# 1 │ 1. "Everything Is Awesome" Tegan and Sara featuring The Lon… 2:43   
# 2 │ 2. "Prologue" 2:28   
# 3 │ 3. "Emmett's Morning" 2:00   
# 4 │ 4. "Emmett Falls in Love" 1:11   
# 5 │ 5. "Escape" 3:26
# ⋮ │ ⋮ ⋮ ⋮ ⋮
# 25 │ 25. "Everything Is Awesome" Jo Li (Joshua Bartholomew and Li… 1:26
# 26 │ 26. "Everything Is Awesome (unplugge… Shawn Patterson and Sammy Allen 1:24
# 27 │ 27. "Untitled Self Portrait" Will Arnett 1:08
# 28 │ 28. "Everything Is Awesome (instrume… 2:41
# 19 rows omitted

```
