Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #55890
| Path | csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <kb1pkl@aim.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.056 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'python.': 0.05; 'urllib2': 0.07; 'python': 0.08; 'output': 0.10; 'pm,': 0.12; 'wrote:': 0.14; 'from:addr:kb1pkl': 0.16; 'from:name:corey richardson': 0.16; 'message-id:@aim.com': 0.16; 'subject:website': 0.23; 'header:In- Reply-To:1': 0.23; 'subject:file': 0.24; 'string': 0.27; 'subject:how': 0.28; 'url:library': 0.28; "i'm": 0.28; 'thanks': 0.30; 'html.': 0.30; 'idea?': 0.30; 'file.': 0.31; 'to:addr :python-list': 0.31; "i've": 0.31; 'quite': 0.33; 'parse': 0.34; 'subject:search': 0.34; 'received:192': 0.34; 'header:User- Agent:1': 0.34; 'url:docs': 0.35; 'received:192.168': 0.37; 'returned': 0.38; 'url:org': 0.38; 'particular': 0.38; 'subject:: ': 0.39; 'url:python': 0.39; 'to:addr:python.org': 0.40; 'site': 0.61; 'minutes': 0.63; 'browser': 0.67; 'website': 0.71; 'received:172.29': 0.72; 'received:r1000.mx.aol.com': 0.72; 'alert': 0.76; '04:20': 0.84; 'received:172.29.41': 0.84; 'received:205.188.105': 0.84 |
| Date | Tue, 01 Feb 2011 16:33:16 -0500 |
| From | Corey Richardson <kb1pkl@aim.com> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: how to get and search a html file from a website |
| References | <4d48791d$0$1342$4fafbaef@reader2.news.tin.it> |
| In-Reply-To | <4d48791d$0$1342$4fafbaef@reader2.news.tin.it> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| x-aol-global-disposition | G |
| X-AOL-SCOLL-SCORE | 0:2:407232640:93952408 |
| X-AOL-SCOLL-URL_COUNT | 0 |
| x-aol-sid | 3039ac1d29424d487c1d6be9 |
| X-AOL-IP | 72.64.6.40 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1557.1296596312.6505.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1296596313 news.xs4all.nl 32470 [::ffff:82.94.164.166]:40057 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:55890 |
Show key headers only | View raw
On 02/01/2011 04:20 PM, Tracubik wrote:
> Hi all!
> i'm writing a notification program and i'm quite new to python.
> The program have to check every 5 minutes a particular website and alert
> me when a particular sentence ("user online") is in the html.
> i've thinked to use a text browser (lynx) to retrieve the html and parse
> the output in python as a normal text file.
> Do you have any better idea?
>
> thanks
> Medeo
urllib2
http://docs.python.org/howto/urllib2.html
If you need fancy-shmancy parsing, look into:
http://docs.python.org/library/htmlparser.html
Or you can treat the returned site as a string and just search for that
sentence.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to get and search a html file from a website Tracubik <affdfsdfdsfsd@b.com> - 2011-02-01 21:20 +0000 Re: how to get and search a html file from a website Corey Richardson <kb1pkl@aim.com> - 2011-02-01 16:33 -0500 Re: how to get and search a html file from a website Paul Anton Letnes <paul.anton.letnes@gmail.com> - 2011-02-01 22:27 +0100
csiph-web