[Tutor] how to remove html ags

Daniel McQuay simplebob at gmail.com
Sat Aug 12 23:07:28 CEST 2006


hey anil,

have you had a look at BeautifulSoup?
http://www.crummy.com/software/BeautifulSoup/

i haven't used it but i have seen it mentioned on the list for parsing html.

On 8/12/06, anil maran <anilmrn at yahoo.com> wrote:
>
> <p><div class="quote">Human nature is not a machin...<http://feeds.feedburner.com/Caterinanet?m=1228>
>
> for example in the above stirng
>
> i want to remove <p>
> and <div class="quote">
>
> i tried
>
> str = str.replace('(.*)','')
>
> it doesnt work
> thanks
>
> ------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1¢/min.
> <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>


-- 
Daniel McQuay
simplebob at gmail.com
boxster.homelinux.org
prowiseguys.com
H: 814.825.0847
M: 814-341-6233
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060812/0e50bb5b/attachment.html 


More information about the Tutor mailing list