Skip to content

Instantly share code, notes, and snippets.

@udhayprakash
Created March 23, 2018 02:44
Show Gist options
  • Save udhayprakash/4e1d1ab44800f43af6c45b40b54eacf7 to your computer and use it in GitHub Desktop.
Save udhayprakash/4e1d1ab44800f43af6c45b40b54eacf7 to your computer and use it in GitHub Desktop.
from requests import get
from re import compile
html = get( 'http://www.ancebergamo.it/schedaimpresa.asp?idimpresa=1263')
text = html.text
textRegex = compile(r'<title>(.*)</title>')
data = textRegex.search(text)
print 'data.group()', data.group()
print 'data.group(0)', data.group(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment