Question: I need to parse a url to get a list of urls that link to a detail page. Then from that page I need to get all the details from that page. I need to do it this way because the detail page url is not regularly incremented and changes, but the event list page stays the same.

Basically:

```
example.com/events/
    <a href="http://example.com/events/1">Event 1</a>
    <a href="http://example.com/events/2">Event 2</a>

example.com/events/1
    ...some detail stuff I need

example.com/events/2
    ...some detail stuff I need

```

Answer: 
For the next group of people that come across this, BeautifulSoup has been upgraded to v4 as of this post as v3 is no longer being updated..

```
$ easy_install beautifulsoup4

$ pip install beautifulsoup4

```

To use in Python...

```
import bs4 as BeautifulSoup

```
**FULL PYTHON 3 EXAMPLE**

Packages

```
# urllib (comes with standard python distribution)
# pip3 install beautifulsoup4

```

Example:

```
import urllib.request
from bs4 import BeautifulSoup

with urllib.request.urlopen('https://www.wikipedia.org/') as f:
    data = f.read().decode('utf-8')

d = BeautifulSoup(data)

d.title.string

```

The above should print out `'Wikipedia'`