from BeautifulSoup import BeautifulSoup
import re
soup = BeautifulSoup(
    '<html><body><img style="background:url(/theRealImage.jpg) no-repate 0 0; height:90px; width:92px;") src="notTheRealImage.jpg"/></body></html>'
    )
style = soup.find('img')['style']
urls = re.findall('url\\((.*?)\\)', style)
How to pull out CSS attributes from inline styles with BeautifulSoup