A url

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SOR

    A url

    Assuming you had 5 links on a webpage and these 5 links pointed to 5
    different websites .

    What sort of info can be grabbed from the five different websites .

    This info would be shown on the webpage with the 5 links .

    The info gathering would be a one time process - with a option to do a
    refresh info if wanted .


    Although i've seen users talk about this sort of this on other
    newsgroups I didnt pay much attention as I didnt want or need it at the
    time .

    One thing I would be very interested in would be if it would be possible
    to take a screenshot of a website and then resize it to a thumbnail for
    display next to the url of the website .

    A refresh would take another screenshot and update the thumbnail .
  • richard

    #2
    Re: A url

    SOR wrote:
    [color=blue]
    > Assuming you had 5 links on a webpage and these 5 links pointed to 5
    > different websites .
    >
    > What sort of info can be grabbed from the five different websites .
    >
    > This info would be shown on the webpage with the 5 links .
    >
    > The info gathering would be a one time process - with a option to do a
    > refresh info if wanted .
    >
    >
    > Although i've seen users talk about this sort of this on other
    > newsgroups I didnt pay much attention as I didnt want or need it at the
    > time .
    >
    > One thing I would be very interested in would be if it would be possible
    > to take a screenshot of a website and then resize it to a thumbnail for
    > display next to the url of the website .
    >
    > A refresh would take another screenshot and update the thumbnail .[/color]


    he he, tricky, you want a web browser that can be controlled by code and a
    screen capture that can be controlled by code,

    konqueror has dcop.
    I have no suggestions for screen grabber, but Im sure there is one.

    Then you will want to reduce the size. php can do that bit with gd (or
    better gd2).

    It will be processor & bandwidth intensive. and difficult.

    you have been warned.

    Comment

    • SOR

      #3
      Re: A url

      <comp.lang.ph p , richard , Richard@localho st.localdomain>
      <gICdnd0oUZzWKn bfRVnyvQ@eclips e.net.uk>
      <Sat, 30 Jul 2005 18:22:16 +0100>
      [color=blue]
      > It will be processor & bandwidth intensive. and difficult.
      >
      > you have been warned.
      >[/color]

      The warning has been heeded :-)

      Will settle for just grabbing some text from the website the url points
      too , How about the title text info and some words from the page .

      Comment

      • Dave

        #4
        Re: A url

        SOR (webmaster@spar esorrepair.co.u k.INVALID) decided we needed to
        hear...[color=blue]
        > <comp.lang.ph p , richard , Richard@localho st.localdomain>
        > <gICdnd0oUZzWKn bfRVnyvQ@eclips e.net.uk>
        > <Sat, 30 Jul 2005 18:22:16 +0100>
        >[color=green]
        > > It will be processor & bandwidth intensive. and difficult.
        > >
        > > you have been warned.
        > >[/color]
        >
        > The warning has been heeded :-)
        >
        > Will settle for just grabbing some text from the website the url points
        > too , How about the title text info and some words from the page .[/color]

        In that case the curl functions will enable you to do what you want.
        Given some of your recent postings I hesitate to point you to php.net
        ;) but, oh well - http://www.php.net/manual/en/ref.curl.php - the
        explanations/examples there should get you started.

        --
        Dave <dave@REMOVEbun dook.com>
        (Remove REMOVE for email address)

        Comment

        • SOR

          #5
          Re: A url

          <comp.lang.ph p , Dave , dave@REMOVEbund ook.com>
          <c84ur2-qo7.ln1@fawlty. homelinux.net>
          <Sun, 31 Jul 2005 01:30:20 -0400>
          [color=blue][color=green]
          > > Will settle for just grabbing some text from the website the url points
          > > too , How about the title text info and some words from the page .[/color]
          >
          > In that case the curl functions will enable you to do what you want.
          > Given some of your recent postings I hesitate to point you to php.net
          > ;) but, oh well - http://www.php.net/manual/en/ref.curl.php - the
          > explanations/examples there should get you started.
          >[/color]

          Had the option of reading up on web fetching or actually writing the
          script using what I already know and opted to write it as the web fetch
          wasnt important .

          I've downloaded a few web fetch scripts from hotscripts and will have a
          look to see how others have done it .

          Either way its just a small script and almost finished and will post a
          url later when some hosting dns changes I made catch up .

          Comment

          • SOR

            #6
            Re: A url

            <comp.lang.ph p , SOR , webmaster@spare sorrepair.co.uk .INVALID>
            <MPG.1d56e4dce5 d8ee30989e1c@no-cancel.newsread er.com>
            <Sun, 31 Jul 2005 14:39:32 +0100>
            [color=blue]
            > Either way its just a small script and almost finished and will post a
            > url later when some hosting dns changes I made catch up .
            >[/color]



            So far only tested by myself - who knows .

            Comment

            • Jasen Betts

              #7
              Re: A url

              In article <MPG.1d55e252cb cc8472989e15@no-cancel.newsread er.com>, SOR wrote:[color=blue]
              ><comp.lang.p hp , richard , Richard@localho st.localdomain>
              ><gICdnd0oUZzWK nbfRVnyvQ@eclip se.net.uk>
              ><Sat, 30 Jul 2005 18:22:16 +0100>
              >[color=green]
              >> It will be processor & bandwidth intensive. and difficult.
              >>
              >> you have been warned.
              >>[/color]
              >
              > The warning has been heeded :-)
              >
              > Will settle for just grabbing some text from the website the url points
              > too , How about the title text info and some words from the page .[/color]

              use the http protocol client class to get the page
              and your favourite string-slicer to extract the data you want.

              --

              Bye.
              Jasen

              Comment

              Working...