# How to download the full content of the dynamic web page?

**URL:** <https://discourse.julialang.org/t/how-to-download-the-full-content-of-the-dynamic-web-page/104998>\
**Category:** General Usage\
**Created:** [October 16, 2023, 4:29am UTC](https://discourse.julialang.org/t/how-to-download-the-full-content-of-the-dynamic-web-page/104998 "2023-10-16T04:29:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)\
**Post date:** [October 16, 2023, 4:29am UTC](https://discourse.julialang.org/t/how-to-download-the-full-content-of-the-dynamic-web-page/104998/1 "2023-10-16T04:29:38Z")

</div>

How to download the full content of the link `path=("https://wybory.gov.pl/sejmsenat2023/pl/sejm/wynik/okr/1")` ?

The download(path,“file.html”) command generates just a fragment of  
the path page.  
Thx!

---

<div class="post-metadata">

**Author:** ![NiclasMattsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/niclasmattsson/32/21988_2.png) [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Post date:** [October 16, 2023, 11:11am UTC](https://discourse.julialang.org/t/how-to-download-the-full-content-of-the-dynamic-web-page/104998/2 "2023-10-16T11:11:57Z")

</div>

Scraping dynamic web content is notoriously tricky because every site has its own API and there’s no universal automatic way to do it. It’s possible but sometimes very time consuming even for experienced web developers, so it’s rarely worth the trouble unless a site happens to serve content in a simple way, e.g. structured JSON objects. This one is delivering blobs (binary objects) so you would have to read the javascript code to see how it’s encoded…

For public election data like this it’s usually better to find a central source for all the data. Here it appears you can go to the “Data in Sheets” tab and download it all:

> **[Wybory do Sejmu i Senatu Rzeczypospolitej Polskiej w 2023 r.](https://wybory.gov.pl/sejmsenat2023/en/dane_w_arkuszach)**
>
> Wybory parlamentarne 2023 w Polsce. Oficjalna strona z informacjami o wyborach parlamentarnych (do Sejmu i do Senatu) Rzeczypospolitej Polskiej odbywających się 15 października 2023 roku w Polsce. Informacje o komisjach obwodowych i listach...

This is MUCH easier if those files have the data you need.
