Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27986
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.041 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'subject:files': 0.09; 'aug': 0.13; 'files.': 0.13; 'language': 0.14; 'algorithmic': 0.16; 'constitutes': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'instance:': 0.16; 'mon,': 0.16; 'string': 0.17; 'wrote:': 0.17; 'code,': 0.18; 'trying': 0.21; 'fairly': 0.21; 'received:209.85.214.174': 0.21; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'possibly': 0.27; 'message- id:@mail.gmail.com': 0.27; 'description,': 0.29; 'notes': 0.30; 'code': 0.31; 'anybody': 0.32; 'could': 0.32; 'defining': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'that,': 0.34; "can't": 0.34; 'received:google.com': 0.34; 'text': 0.34; 'list': 0.35; 'clear': 0.35; 'false': 0.35; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'enough': 0.36; 'turn': 0.36; 'two': 0.37; 'quite': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'positive': 0.38; 'some': 0.38; 'sure': 0.38; 'advice': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60; 'matter': 0.61; 'first': 0.61; "you'll": 0.62; '(that': 0.62; 'solve': 0.62; 'show': 0.63; 'hour': 0.69; 'subject:read': 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 :content-type; bh=9cOv67OO8mfybFQRYAIelmVf04ChwObifNbkGh0qA14=; b=JB8uDI5GfN7JDSsJ2zNWGzmwQ/WuWWI7SQIWG762cAGqcTjHQhHE1Z6gA+/I3T3UP7 egiXGOwsD/YoWJLMBivlPHVrq3pK+/BzOHKzAo7I1Hn4fd/R3fpyQZNAkfyuxDsYKLTn pfs0Cxahyt7npFRauOQsG5MbURNylckdv0UpsGw1c1D+bMV4MzhMtb8h2n+nE5Bup2fn Gu8bwW2n6pNCjCj2oi/CWMCKbpXObZxpj6nYIWagzGR7RosIHQwyHqbtP3VH4GQ1gQ9c x8i3JWxxAISdVWQvpmDR3xY5kn5h53bkAe1/08Ub6oguXX3il4WNmUu2IbqTc+ua1YCl Cyrg== |
| MIME-Version | 1.0 |
| In-Reply-To | <858c2da2-6936-4bd7-8944-f45446fbd3be@googlegroups.com> |
| References | <1c7cd833-b6ad-4a17-8ffe-a0ce20c8f400@googlegroups.com> <858c2da2-6936-4bd7-8944-f45446fbd3be@googlegroups.com> |
| Date | Tue, 28 Aug 2012 00:41:46 +1000 |
| Subject | Re: What do I do to read html files on my pc? |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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.3877.1346078509.4697.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1346078509 news.xs4all.nl 6928 [2001:888:2000:d::a6]:43233 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:27986 |
Show key headers only | View raw
On Mon, Aug 27, 2012 at 11:51 PM, mikcec82 <michele.cecere@gmail.com> wrote: > I have this html data and I want to check if it is present a string "XXXX" or/and a string "NOT PASSED": Start by scribbling down some notes in your native language (that is, don't bother trying to write code yet), defining exactly what you're looking for. What constitutes a hit? What would be a false positive that you need to avoid? For instance: * The string XXXX must occur outside of any HTML tag. or: * The string XXXX must occur inside a <td> but not inside <samp>. or: * The string XXXX must be in the first <td> inside of a <tr> in the <table> that immediately follows the text "abcdefg". Make sure it's clear enough that anybody could follow it, even without knowing everything you know about your files. Once you have that algorithmic description, it's simply a matter of translating it into a language the computer can handle; and that's fairly straight-forward. An hour or two with language/library documentation and you'll quite possibly have working code, or if you don't, you'll at least have something that you can show to the list and ask for help with. But until you have that, advice from this list is going to be fairly vague, and may turn out to be quite misleading. We can't solve your problem until we know what it is, and you can't tell us what the problem is until you know yourself. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What do I do to read html files on my pc? mikcec82 <michele.cecere@gmail.com> - 2012-08-27 03:59 -0700
Re: What do I do to read html files on my pc? Chris Angelico <rosuav@gmail.com> - 2012-08-27 21:58 +1000
Re: What do I do to read html files on my pc? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-27 13:05 +0100
Re: What do I do to read html files on my pc? mikcec82 <michele.cecere@gmail.com> - 2012-08-27 06:51 -0700
Re: What do I do to read html files on my pc? Joel Goldstick <joel.goldstick@gmail.com> - 2012-08-27 10:21 -0400
Re: What do I do to read html files on my pc? Chris Angelico <rosuav@gmail.com> - 2012-08-28 00:41 +1000
Re: What do I do to read html files on my pc? Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-08-27 18:57 +0200
Re: What do I do to read html files on my pc? mikcec82 <michele.cecere@gmail.com> - 2012-08-28 03:09 -0700
Re: What do I do to read html files on my pc? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-08-28 13:31 +0100
Re: What do I do to read html files on my pc? Peter Otten <__peter__@web.de> - 2012-08-28 17:38 +0200
Re: What do I do to read html files on my pc? mikcec82 <michele.cecere@gmail.com> - 2012-08-29 03:22 -0700
Re: What do I do to read html files on my pc? Umesh Sharma <usharma01@gmail.com> - 2012-08-29 05:00 -0700
csiph-web