Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91105
| Date | 2015-05-23 12:16 +0530 |
|---|---|
| Subject | Extract email address from Java script in html source using python |
| From | savitha devi <savithad8@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.265.1432369272.17265.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
I am developing a web scraper code using HTMLParser. I need to extract
text/email address from java script with in the HTMLCode.I am beginner
level in python coding and totally lost here. Need some help on this. The
java script code is as below:
<script type='text/javascript'>
//<!--
document.getElementById('cloak48218').innerHTML = '';
var prefix = 'ma' + 'il' + 'to';
var path = 'hr' + 'ef' + '=';
var addy48218 = 'info' + '@';
addy48218 = addy48218 + 'tsv-neuried' + '.' +
'de';
document.getElementById('cloak48218').innerHTML += '<a ' + path +
'\'' + prefix + ':' + addy48218 + '\'>' + addy48218+'<\/a>';
//-->
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Extract email address from Java script in html source using python savitha devi <savithad8@gmail.com> - 2015-05-23 12:16 +0530 Re: Extract email address from Java script in html source using python Peter Pearson <pkpearson@nowhere.invalid> - 2015-05-23 16:57 +0000 Re: Extract email address from Java script in html source using python Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-25 18:39 +0000
csiph-web