I have text that looks like:

```
Link(base_url=u'http://www.bing.com/search?q=site%3Asomesite.com', url='http://www.somesite.com/prof.php?pID=478', text='SomeSite -  Professor Rating of Louis Scerbo', tag='a', attrs=[('href', 'http://www.somesite.com/prof.php?pID=478'), ('h', 'ID=SERP,5105.1')])Link(base_url=u'http://www.bing.com/search?q=site%3Asomesite.com', url='http://www.somesite.com/prof.php?pID=527', text='SomeSite -  Professor Rating of Jahan \xe2\x80\xa6', tag='a', attrs=[('href', 'http://www.somesite.com/prof.php?pID=527'), ('h', 'ID=SERP,5118.1')])Link(base_url=u'http://www.bing.com/search?q=site%3Asomesite.com', url='http://www.somesite.com/prof.php?pID=645', text='SomeSite -  Professor Rating of David Kutzik', tag='a', attrs=[('href', 'http://www.somesite.com/prof.php?pID=645'), ('h', 'ID=SERP,5131.1')])

```

**Questions**

1. Does anyone know the format of this text?
2. How would I go about parsing out the values of the element `url` for example (from the above text):
<http://www.somesite.com/prof.php?pID=478>
<http://www.somesite.com/prof.php?pID=527>
3. What python library(s) would you recommend for parsing say this type of output, xml, json, etc?

I am just trying to `loop through the url` and parse the value of `url` only.

Keep in mind I'm using Django.

Thank you for any help you can provide.

**edit**
\**current code:*\*

```
domainLinkOutputAsString = str(domainLinkOutput) 

r = re.compile(" url='(.*?)',", )  ##ERRORENOUS, must be 're' compliant.

ProperDomains = r.findall(domainLinkOutputAsString)

return HttpResponse(ProperDomains)

```