I want to try to extract the product name and price from the website using beautifulsoup. But I do not know how to extract the content.

### Python code:

```
from bs4 import BeautifulSoup
import re

div = '<div pagetype="simple_table_nonFashion" class="itemBox" 
id="itemSearchResultCon_679026"><p class="proPrice"><em class="num" 
id="price0_679026" productid="679026" adproductflag="0" yhdprice="49.9" 
productunit="" diapernum="0" diapernumunit=""><b>¥</b>49.90</em></p><p 
class="proName clearfix"><a id="pdlink2_679026" pmid="0" 
href="//item.yhd.com/679026.html"><style type="text/css">.preSellOrAppoint 
{border: 1px solid #FFFFFF;}</style>印尼进口</a></p></div>'

soup = BeautifulSoup(div, "lxml")
itemBox = soup.find("div", {"class": "itemBox"})
proPrice = itemBox.find("p", {"class": "proPrice"}).find("em").text
pdlink2 = itemBox.find('a',{"id": re.compile('pdlink2_*')}).text
print(proPrice)
print(pdlink2)

```

### Print out the result：

```
¥49.90
.preSellOrAppoint {border: 1px solid #FFFFFF;}印尼进口

```

### The picture：

[![enter image description here](https://i.stack.imgur.com/4tfHn.png)](https://i.stack.imgur.com/4tfHn.png)

### My expected result is the content:

```
49.90
印尼进口

```