import requests
r = requests.get(
    'http://stackoverflow.com/questions/27934387/how-to-retrieve-information-inside-a-tag-with-python/27934403#27934387'
    )
How to get inner text value of an HTML tag with BeautifulSoup bs4?