Perl class to remove HTML tags from a page using a list of CSSselectors?

Discussion in 'Perl Misc' started by Charles L., Mar 23, 2009.

  1. Charles L.

    Charles L. Guest

    Hello,

    I have Squid (a proxy server) on my computer and I use it as an ad
    filter (like AdBlock, AdSweep or Privoxy). Every HTML page that I
    download from my browser, goes through Squid that in turn sends it to
    a Perl script that can alter content from the page and send it back
    once changed.

    I was wondering if there is a Perl class that exists and that I could
    use to take CSS selectors (e.g. #bannerad, div.adsense), search for
    each of those selectors inside the HTML page, remove them (and all
    child nodes), and return the cleaned page.

    Thanks,
    Charles L., Mar 23, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mitchua
    Replies:
    1
    Views:
    7,062
    Ice Demon
    Jul 15, 2003
  2. jjliu
    Replies:
    5
    Views:
    14,270
    Gunnar Hjalmarsson
    Oct 15, 2003
  3. Mark
    Replies:
    1
    Views:
    707
    Joe Smith
    Aug 12, 2004
  4. Rob Nicholson
    Replies:
    3
    Views:
    717
    Rob Nicholson
    May 28, 2005
  5. Nico Grubert
    Replies:
    4
    Views:
    690
    Gabriel Cooper
    Feb 2, 2005
Loading...

Share This Page