url = 'http://rediff.com/'
page = urllib.request.urlopen(url)
soup = BeautifulSoup(page.read())
sources = soup.findAll('script', {'src': True})
for source in sources:
    pass
Getting attribute's value using BeautifulSoup