# Web scraper BeautifulSoup

**URL:** <https://forum.inductiveautomation.com/t/web-scraper-beautifulsoup/73155>\
**Category:** Ignition\
**Created:** [May 2, 2023, 5:31pm UTC](https://forum.inductiveautomation.com/t/web-scraper-beautifulsoup/73155 "2023-05-02T17:31:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 2, 2023, 5:46pm UTC](https://forum.inductiveautomation.com/t/web-scraper-beautifulsoup/73155/3 "2023-05-02T17:46:54Z")

</div>

If it's the one from this post (and looking at the file, I believe it is), then this was put together for 8.x

> [@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 …

You can try unzipping it, then copying the contents of code.py into a blank script.

---

_[View the full topic](https://forum.inductiveautomation.com/t/web-scraper-beautifulsoup/73155)._
