Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > html tags and webpages

Reply
Thread Tools

html tags and webpages

 
 
jeff
Guest
Posts: n/a
 
      07-17-2003
Hiya,

I had a go at this in perl and to be fairly honest perl scared me, i
didnt like the language one bit, ive used python before and find it a
"clean" language to use.

Basically what i want to do is create a script in python that will
look at a website and pull off a certain type of html tag and anything
contained within them tags,

I did this in perl but would like to do it in python, in perl i had to
use a module would i need to do this sort of think in python??

any help greatly appreciated, im not OS specific as i use both windows
and linux but that wouldnt matter for a scripting language other than
in the file handling??

cheers

greg
 
Reply With Quote
 
 
 
 
Harald Massa
Guest
Posts: n/a
 
      07-17-2003
gret,

google for dive into python.

Exactly your job is described there in great detail, with examples.

Best wishes,

harald
 
Reply With Quote
 
 
 
 
Rene Pijlman
Guest
Posts: n/a
 
      07-17-2003
jeff:
>Basically what i want to do is create a script in python that will
>look at a website and pull off a certain type of html tag and anything
>contained within them tags,


This is what you need:
http://www.python.org/doc/2.2.3/lib/module-urllib.html
http://www.python.org/doc/2.2.3/lib/...TMLParser.html

--
René Pijlman
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer Rob Nicholson ASP .Net 3 05-28-2005 03:11 PM
html tags within meta tags allowed? Donald Firesmith XML 5 01-08-2005 11:29 PM
RegEx to find CFML tags nested in HTML tags Dean H. Saxe Perl 0 01-03-2004 06:11 PM
Smart Tags on webpages jedi Computer Support 4 11-26-2003 06:54 AM
How to use HTML::Parser to remove HTML tags and print result Mitchua Perl 1 07-15-2003 02:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57