# How to parse statistics from web site?

**URL:** <https://discuss.prometheus.io/t/how-to-parse-statistics-from-web-site/563>\
**Category:** Exporters and Metrics\
**Created:** [October 18, 2021, 1:24pm UTC](https://discuss.prometheus.io/t/how-to-parse-statistics-from-web-site/563 "2021-10-18T13:24:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rom.adm](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rom.adm](https://discuss.prometheus.io/u/rom.adm)\
**Post date:** [October 18, 2021, 1:24pm UTC](https://discuss.prometheus.io/t/how-to-parse-statistics-from-web-site/563/1 "2021-10-18T13:24:19Z")

</div>

Hello everybody!  
please tell me how to parse the of views (statistics) on the site olx.ua for ex:

[https://www.olx.ua/d/uk/obyavlenie/m2-ssd-samsung-980-pro-IDN00Yd.html?sd=1#81ececd520](https://www.olx.ua/d/uk/obyavlenie/m2-ssd-samsung-980-pro-IDN00Yd.html?sd=1#81ececd520)

---

<div class="post-metadata">

**Author:** ![stuart](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/stuart/32/18_2.png) [@stuart](https://discuss.prometheus.io/u/stuart)\
**Post date:** [October 18, 2021, 1:48pm UTC](https://discuss.prometheus.io/t/how-to-parse-statistics-from-web-site/563/2 "2021-10-18T13:48:03Z")

</div>

What are you trying to achieve? Looking briefly at that link it looks like a product page for an item. I’m not seeing anything which looks like time based metrics?

---

<div class="post-metadata">

**Author:** ![rom.adm](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rom.adm](https://discuss.prometheus.io/u/rom.adm)\
**Post date:** [October 18, 2021, 2:00pm UTC](https://discuss.prometheus.io/t/how-to-parse-statistics-from-web-site/563/3 "2021-10-18T14:00:53Z")

</div>

Yes, it’s product page.  
On page have counter ov viewers of product and period.  
Maybe node.js good for this task?

---

<div class="post-metadata">

**Author:** ![stuart](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/stuart/32/18_2.png) [@stuart](https://discuss.prometheus.io/u/stuart)\
**Post date:** [October 18, 2021, 2:17pm UTC](https://discuss.prometheus.io/t/how-to-parse-statistics-from-web-site/563/4 "2021-10-18T14:17:24Z")

</div>

Where is this count currently being stored? In some form of database? If so, that’s probably the best place to source metrics from. I’d create a small application (or part of the existing one) which exposes that database information as Prometheus metrics.

However, unless there are only a few products this is probably not a good fit with Prometheus. What is the reason for wanting to scrape the data into Prometheus? Alerts? Dashboards?

If it is just dashboards then you can grab the data directly from your database into Grafana without needing Prometheus at all.

---

<div class="post-metadata">

**Author:** ![rom.adm](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rom.adm](https://discuss.prometheus.io/u/rom.adm)\
**Post date:** [October 18, 2021, 8:37pm UTC](https://discuss.prometheus.io/t/how-to-parse-statistics-from-web-site/563/5 "2021-10-18T20:37:07Z")

</div>

Yes, you right, Stuart.  
I need just dashboards with grab the data directly from database (unknown) into Grafana.  
Unknown because l’m not owner web site DB
