looking for script

Discussion in 'PHP' started by protocol96, Apr 5, 2007.

  1. #1
    looking for script which convert html page to tab seperated file

    and

    it would be awesome if it check the link and get their content as well.
     
    protocol96, Apr 5, 2007 IP
  2. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    From the first line of your post I have no idea what you asking for. Based on the second line it sounds like you want to fetch the links or at least extract them.

    Is this right? Is this all you want?
     
    streety, Apr 5, 2007 IP
  3. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i m looking for a script which can extract the content of the page and also if theres a link on the page, go to that link and extract the content too. something like the crawler
     
    protocol96, Apr 8, 2007 IP
  4. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well thats simple enough to do with a regular expression to match any urls and then file_get_contents to fetch the contents. How do you want to store the data? I really don't think a tab delimited file is going to be your best approach in this instance.
     
    streety, Apr 9, 2007 IP
  5. ErectADirectory

    ErectADirectory Guest

    Messages:
    656
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Perl would be a faster way of doing this than php but since you posted it here . . .

    Check out sphider which will act as a search engine spider (indexing keywords, gathering & following links, etc.). If you want to index the code of the page you will have to hack it out by adding file_get_contents inside the script as it does not save the whole page, just words for indexing.

    Great script though, high marks in my book.
     
    ErectADirectory, Apr 9, 2007 IP
    protocol96 likes this.
  6. ituloyangsulong

    ituloyangsulong Active Member

    Messages:
    512
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #6
    I am looking for a Free Song Lyrics Script.. Just planning to have a site about on son lyrics... But dont know how to get started... Any idea where in this forum about FREE scripts and where to download?
     
    ituloyangsulong, Apr 9, 2007 IP
  7. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Neva tried out perl, still in learning mode PHP, so i thought a PHP script would let me play around with it. Thanks for the link but i had already written code which would do most the
    work i needed to.


    @streety, yup i did use file_get_contents and then extract, since the page i was gettin the content from was all messed with tables and css stuff, my work got done.

    Thanks guyz.
     
    protocol96, Apr 9, 2007 IP
  8. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Try this thread for directories for php scripts. I would start with hotscripts.com, scripts.com, scriptsearch.com.


    protocol96, I'm pleased to hear you've got it working.
     
    streety, Apr 10, 2007 IP
    protocol96 likes this.