in reply to Re^2: RFC: URI::URL::Detail
in thread RFC: URI::URL::Detail

Hey Jenda,

Actually yes - here is a list of features the module will have in V 0.01:

  1. Given the HTML of a page
    1. Find all anchor elements - broken into "this domain links" and "other domain links".
    2. Find images on a page - broken as above.
    3. Find the Title, description and other such meta data.
    4. Find meta keywords and description of the page.
    5. Extract lists (ul and ol) from the HTML of a page
    6. Find RSS Feeds of a page, if any.
    7. anything else I / You guys can think of ...
  2. Split up an anchor tag into : The URL, the alt text and the anchor text.
  3. Given possible anchor/alt text find the related link. [Given Home -  <a href=""> home page </a> will be extracted.
  4. Given a potentially relative URL and the current URL, returns the absolute URL.
  5. Given a potential redirecting URL, returns the final destination URL.
  6. Breaks up a URL into Protocol, domain and URI

I am still looking for additional features I can add. So please do suggest anything else you can think of

Replies are listed 'Best First'.
Re^4: RFC: URI::URL::Detail
by Anonymous Monk on Aug 11, 2009 at 08:27 UTC
    anything else I / You guys can think of ...

    Subclass WWW::Mechanize, because it does practically everything on your list.