Using beautfiulsoup to parse sourcecode for scraping:
tempSite = preSite+'/contact_us/'
print tempSite
theTempSite = urlopen(tempSite).read()
currentTempSite = BeautifulSoup(theTempSite)
lightwaveEmail = currentTempSite('input')[7]
#<input type="Hidden" name="bb_recipient" value="comm2342@gmail.com" />
How can I re.compile lightwaveEmail so that only comm2342@gmail.com is printed?
Kinda going about it the wrong way. The reason its the wrong way is that you’re using numbered indexes to find the tag you want – BeautifulSoup will find tags for you based on their tag, or attributes which makes it a lot simpler.
You want something like