# Does anyone know of a Beautiful Soup J-python equivalent?

**URL:** <https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719>\
**Category:** Ignition\
**Created:** [June 16, 2020, 4:57pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719 "2020-06-16T16:57:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [June 16, 2020, 4:57pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/1 "2020-06-16T16:57:11Z")

</div>

Or at least something similar?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 16, 2020, 5:05pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/2 "2020-06-16T17:05:41Z")

</div>

You might be able to get the previous version (beautiful soup 3.x) to work.

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [June 16, 2020, 5:39pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/3 "2020-06-16T17:39:26Z")

</div>

Thanks I’ll look into

If anyone can add…

```auto
from sgmllib import SGMLParser, SGMLParseError
import codecs
import types
import re
import sgmllib
try:
  from htmlentitydefs import name2codepoint
except ImportError:
  name2codepoint = {}

```

---

<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:** [June 17, 2020, 2:19pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/4 "2020-06-17T14:19:45Z")

</div>

> [@wking](#):
>
> If anyone can add…

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:

```python
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:

```plaintext
row | meter value
---------------------------------
 0 | L1 Current 1229 
 1 | L2 Current 1187 
 2 | L3 Current 1164 
 3 | Avg Current 1194 
 4 | L1-N Voltage 282.0
 5 | L2-N Voltage 280.7
 6 | L3-N Voltage 277.0
 7 | Avg L-N Voltage 279.9
 8 | L1-L2 Voltage 487.0
 9 | L2-L3 Voltage 482.3
 10 | L3-L1 Voltage 485.2
 11 | Avg L-L Voltage 484.9
 12 | Frequency, last cycle 59.99

```

---

<div class="post-metadata">

**Author:** ![SamuelsenLarsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samuelsenlarsen/32/11901_2.png) [@SamuelsenLarsen](https://forum.inductiveautomation.com/u/SamuelsenLarsen)\
**Post date:** [February 15, 2021, 1:49pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/5 "2021-02-15T13:49:34Z")

</div>

Hi,

How do I import the downloaded .zip file to project libary?

---

<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:** [February 15, 2021, 2:25pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/6 "2021-02-15T14:25:23Z")

</div>

```nohighlight
File
  └ Import

```

[https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/f/9f17f0b2071ecc565b79d7f710e3852c058ad9fd.mp4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/f/9f17f0b2071ecc565b79d7f710e3852c058ad9fd.mp4)

---

<div class="post-metadata">

**Author:** ![SamuelsenLarsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samuelsenlarsen/32/11901_2.png) [@SamuelsenLarsen](https://forum.inductiveautomation.com/u/SamuelsenLarsen)\
**Post date:** [February 15, 2021, 9:29pm UTC](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719/7 "2021-02-15T21:29:26Z")

</div>

Thanks😊!
