On Sat, 23 May 2015 19:01:55 +1000, Chris Angelico <ros...@gmail.com>
wrote:

>On Sat, May 23, 2015 at 4:46 PM, savitha devi <savith...@gmail.com> wrote:
>> 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 = '&#109;a' + 'i&#108;' + '&#116;o';
>>  var path = 'hr' + 'ef' + '=';
>>  var addy48218 = '&#105;nf&#111;' + '&#64;';
>>  addy48218 = addy48218 + 'tsv-n&#101;&#117;r&#105;&#101;d' + '&#46;' +
>> 'd&#101;';
>>  document.getElementById('cloak48218').innerHTML += '<a ' + path + '\'' +
>> prefix + ':' + addy48218 + '\'>' + addy48218+'<\/a>';
>>  //-->
>
>This is deliberately being done to prevent scripted usage. What
>exactly are you needing to do this for?

To sell addresses to spammers, of course. 


-- 
Terms and conditions apply. 

Steve Hayes
hayesm...@hotmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to