Question: Basically I have two tables: nodes and nature. Nodes have an auto-incrementing ID, and nature has a 'node' column that is what I am focusing on here. The node column contains a delimited string of IDs from the nodes table (the nodes that the nature entry is in.)

An example of the node column in nature table might look like this:

```
.1.10.597.598.599.600.

```

There are periods in front and behind each id so I can search for all images in a node (WHERE node LIKE '%.".$\_GET['id'].".%') for example.

That being said I am trying to select all entries from the node table that have entries in the nature table. Here's what I've got so far but it returns an empty set.

```
SELECT *
FROM nodes A
INNER JOIN nature B
ON A.id LIKE '%.B.node.%'

```

Any help would be greatly appreciated.

Answer: 
This will get exactly what you want:

```
address = soup.find('div', {'style':'float:left;width:100%;padding-top:10px;padding-bottom:30px;'})
print address.get_text()

```

use a dict to define the `style` attr 

use `get_text()` to get text between tags
In order to search by an attribute, you need to tell BeautifulSoup which attribute to look at. There are a couple of ways to do this:

```
>>> soup.find('div', style='float:left;width:100%;padding-top:10px;padding-bottom:30px;')
<div style="float:left;width:100%;padding-top:10px;padding-bottom:30px;">
<div>1936 North St.</div>
<div>Natchitoches, TX 75962</div>
<div>936-468-2901</div>
</div>

```

```
>>> soup.find('div', {
...     'style': 'float:left;width:100%;padding-top:10px;padding-bottom:30px;'
... })
<div style="float:left;width:100%;padding-top:10px;padding-bottom:30px;">
<div>1936 North St.</div>
<div>Natchitoches, TX 75962</div>
<div>936-468-2901</div>
</div>

```

The latter is particularly useful if you're searching on the `class` attribute, which can't be a keyword argument because it's a reserved word in Python.