Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91131
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <savithad8@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'interpreter.': 0.07; 'prefix': 0.07; 'subject:script': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'subject:python': 0.14; '<script': 0.16; "'';": 0.16; "':'": 0.16; "'\\''": 0.16; '23,': 0.16; 'decode': 0.16; 'subject:Java': 0.16; 'wrote:': 0.16; 'basically': 0.18; 'beginner': 0.18; 'script.': 0.18; '>': 0.18; 'language': 0.19; 'email addr:gmail.com>': 0.20; 'prevent': 0.20; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'trying': 0.22; 'java': 0.22; "skip:' 40": 0.22; 'code,': 0.23; 'code.': 0.23; '2015': 0.23; 'for?': 0.23; 'sat,': 0.23; 'header :In-Reply-To:1': 0.24; 'developing': 0.25; 'script': 0.25; 'chris': 0.26; 'coding': 0.27; 'var': 0.27; 'message- id:@mail.gmail.com': 0.28; 'this.': 0.28; 'regular': 0.29; "skip:' 10": 0.30; 'url:mailman': 0.31; 'code': 0.31; 'embedded': 0.32; 'skip:d 40': 0.32; 'url:python': 0.33; 'extract': 0.33; 'received:google.com': 0.34; 'url:listinfo': 0.35; 'done': 0.35; 'path': 0.35; 'being': 0.36; 'url:org': 0.36; 'totally': 0.36; 'subject:: ': 0.37; "skip:' 20": 0.37; 'level': 0.37; 'doing': 0.38; 'pm,': 0.39; 'skip:t 20': 0.40; 'some': 0.40; 'address': 0.61; 'entire': 0.61; 'here.': 0.61; 'needing': 0.63; 'virtually': 0.66; 'below:': 0.75; 'chrisa': 0.84; 'subject:source': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WF6/keHzW60ErSOxJSC9Sr9CFtZKxRCKkBNq53Cry1I=; b=GeDYEUBEcv4KereilrECXGyhQtWDO2AGlp1CA3YTMU/TzwKViLp6M9eFDv/0slkeci 8iAp9kmNBo6Exz7JBfyYAqxlOPgCH7vM/KmFpidgYJHgx6wjVm0N2qJrCOhjYZtopOkH cwGWLsZhsKP7W6SaN11/JiBPaAJofTVuSd4/RxBZt806lVr/AxlzXLMz0ZdH5ztrf3NU Rm2gM7FCSqSOlXLtDE5W7/kn7U8W2kF9gF+aXspW5eCMYHpoGSgL2C3BiO1TTa28L+UF jos5E6l5DpyNeRZUKJ+SQhKVQHGbC4nA8h+jCaz6EOxA1a4ntFjGjnb7icvqUwtySpSz l6nQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.202.226.80 with SMTP id z77mr1382090oig.64.1432390514914; Sat, 23 May 2015 07:15:14 -0700 (PDT) |
| In-Reply-To | <CAPTjJmqBDu0nB2u_mf7KMpFzxxJFUqB7o-7dJiGgu-xyOL2uzg@mail.gmail.com> |
| References | <CAAXuHoeJ-YMQDB85qLDJ_o+9CrsfwLvm9wuOaRtbSj-i9kBaFA@mail.gmail.com> <CAPTjJmqBDu0nB2u_mf7KMpFzxxJFUqB7o-7dJiGgu-xyOL2uzg@mail.gmail.com> |
| Date | Sat, 23 May 2015 19:45:14 +0530 |
| Subject | Re: Extract email address from Java script in html source using python |
| From | savitha devi <savithad8@gmail.com> |
| To | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=001a1141adcad23f0a0516c067ed |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.276.1432390523.17265.python-list@python.org> (permalink) |
| Lines | 97 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1432390523 news.xs4all.nl 2840 [2001:888:2000:d::a6]:57191 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:91131 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
What I exactly want is the java script is in the html code. I am trying for
a regular expression to find the email address embedded with in the java
script.
On Sat, May 23, 2015 at 2:31 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Sat, May 23, 2015 at 4:46 PM, savitha devi <savithad8@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 = '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>';
> > //-->
>
> This is deliberately being done to prevent scripted usage. What
> exactly are you needing to do this for?
>
> You're basically going to have to execute the entire block of
> JavaScript code, and then decode the entities to get to what you want.
> Doing it manually is pretty easy; doing it automatically will
> virtually require a language interpreter.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Extract email address from Java script in html source using python savitha devi <savithad8@gmail.com> - 2015-05-23 19:45 +0530
csiph-web