sophie_newbie wrote:
> Hi, I'm wondering how i'd go about extracting a string array of all
> comments in a HTML file, HTML comments obviously taking the format
> "".
>
> I'm fairly stumped on how to do this? Maybe using regular expressions?
from lxml import etree
parser = etree.HTMLParser
On Sep 30, 10:39 am, sophie_newbie <[EMAIL PROTECTED]> wrote:
> Hi, I'm wondering how i'd go about extracting a string array of all
> comments in a HTML file, HTML comments obviously taking the format
> "".
>
> I'm fairly stumped on how to do this? Maybe using regular expressions?
>
> Thanks.
>>>
On Sep 30, 10:39 am, sophie_newbie <[EMAIL PROTECTED]> wrote:
> Hi, I'm wondering how i'd go about extracting a string array of all
> comments in a HTML file, HTML comments obviously taking the format
> "".
>
> I'm fairly stumped on how to do this? Maybe using regular expressions?
>
> Thanks.
E:\R
sophie_newbie wrote:
> Hi, I'm wondering how i'd go about extracting a string array of all
> comments in a HTML file, HTML comments obviously taking the format
> "".
>
> I'm fairly stumped on how to do this? Maybe using regular expressions?
>
> Thanks.
>
You should probably eat beautiful soup at