Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52476
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-08-13 16:03 -0700 |
| References | <40816fed-38d4-4baa-92cc-c80cd8febd82@googlegroups.com> <mailman.548.1376434691.1251.python-list@python.org> |
| Message-ID | <5b73c6fe-a282-4d28-ab29-2e1dfdd09290@googlegroups.com> (permalink) |
| Subject | Re: Getting a value that follows string.find() |
| From | englishkevin110@gmail.com |
On Tuesday, August 13, 2013 5:58:07 PM UTC-5, Joel Goldstick wrote: > lookup urlparse for you answer > > > > On Tue, Aug 13, 2013 at 6:51 PM, <> wrote: > > > I know the title doesn't make much sense, but I didnt know how to explain my problem. > > > > > > Anywho, I've opened a page's source in URLLIB > > > starturlsource = starturlopen.read() > > > string.find(starturlsource, '<a href="/profile.php?id=') > > > And I used string.find to find a specific area in the page's source. > > > I want to store what comes after ?id= in a variable. > > > Can someone help me with this? > > > -- > > > http://mail.python.org/mailman/listinfo/python-list > > > > > > > > -- > > Joel Goldstick > > http://joelgoldstick.com I dont want to do any kind of HTML parsing.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Getting a value that follows string.find() englishkevin110@gmail.com - 2013-08-13 15:51 -0700
Re: Getting a value that follows string.find() Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-13 18:58 -0400
Re: Getting a value that follows string.find() englishkevin110@gmail.com - 2013-08-13 16:03 -0700
Re: Getting a value that follows string.find() Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-13 19:18 -0400
Re: Getting a value that follows string.find() Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-13 19:40 -0400
Re: Getting a value that follows string.find() Steven D'Aprano <steve@pearwood.info> - 2013-08-14 06:29 +0000
Re: Getting a value that follows string.find() Dave Angel <davea@davea.name> - 2013-08-14 01:31 +0000
Re: Getting a value that follows string.find() John Gordon <gordon@panix.com> - 2013-08-14 15:58 +0000
csiph-web