# Scraping a html table from a website

**URL:** <https://discourse.julialang.org/t/scraping-a-html-table-from-a-website/47378>\
**Category:** New to Julia\
**Created:** [September 27, 2020, 11:02pm UTC](https://discourse.julialang.org/t/scraping-a-html-table-from-a-website/47378 "2020-09-27T23:02:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [September 27, 2020, 11:02pm UTC](https://discourse.julialang.org/t/scraping-a-html-table-from-a-website/47378/1 "2020-09-27T23:02:58Z")

</div>

I am trying to obtain COVID-19 data from a website. The website has the data which I want but it is in a html table format

I am looking for Julia tools to scrape the information from the html table. Something like this

> **[Web Scraping HTML Tables with Python](https://towardsdatascience.com/web-scraping-html-tables-with-python-c9baba21059)**
>
> Starting off, we will try scraping the online Pokemon Database (http://pokemondb.net/pokedex/all).

Is there an existing package in Julia for this?

I am thinking about writing my own module to do this but I ask here first before writing my own module.

---

<div class="post-metadata">

**Author:** ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Post date:** [September 28, 2020, 2:04am UTC](https://discourse.julialang.org/t/scraping-a-html-table-from-a-website/47378/2 "2020-09-28T02:04:12Z")

</div>

[https://github.com/JuliaWeb/Gumbo.jl](https://github.com/JuliaWeb/Gumbo.jl)

[https://github.com/Algocircle/Cascadia.jl](https://github.com/Algocircle/Cascadia.jl)

---

<div class="post-metadata">

**Author:** ![avik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avik/32/17_2.png) [@avik](https://discourse.julialang.org/u/avik)\
**Post date:** [September 29, 2020, 9:37am UTC](https://discourse.julialang.org/t/scraping-a-html-table-from-a-website/47378/3 "2020-09-29T09:37:54Z")

</div>

Yes, the combination of Gumbo and Cascadia is what you need. There is some example code in the README for Cascadia, and some more examples in this SO post: [Extracting and Constructing Tables from HTML Files using Julia - Stack Overflow](https://stackoverflow.com/questions/42915962/extracting-and-constructing-tables-from-html-files-using-julia)
