# Extracting data from webpage (javascript object or json?)

**URL:** <https://forum.inductiveautomation.com/t/extracting-data-from-webpage-javascript-object-or-json/69128>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [January 28, 2023, 8:57pm UTC](https://forum.inductiveautomation.com/t/extracting-data-from-webpage-javascript-object-or-json/69128 "2023-01-28T20:57:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 30, 2023, 9:24am UTC](https://forum.inductiveautomation.com/t/extracting-data-from-webpage-javascript-object-or-json/69128/4 "2023-01-30T09:24:57Z")

</div>

> [@Does anyone know of a Beautiful Soup J-python equivalent?](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/4):
>
> Import to project library: [BeautifulSoup3.2.2.zip](https://forum.inductiveautomation.com/uploads/short-url/4qjfSbxXgZH2NJef3TWi4EavnV1.zip) (22.0 KB) Test using one of our power monitors: from BeautifulSoup import BeautifulSoup url = "http://192.168.140.31/15" soup = BeautifulSoup(system.net.httpGet(url)) t = soup.find('table') tr = t.findAll('tr') headers = ['meter', 'value'] data = [] for row in tr: td = row.findAll('td') if len(td) \> 0: data.append([col.text for col in td]) dataOut = system.dataset.toDataSet(headers, data) Resultant dataset: row | meter …

---

_[View the full topic](https://forum.inductiveautomation.com/t/extracting-data-from-webpage-javascript-object-or-json/69128)._
