dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to return webpage HTML code?

Hybrid View

  1. #1
    Join Date
    May 2012
    Posts
    2

    Exclamation How to return webpage HTML code?

    I need to obtain (through PHP script) all ths information from a specific website.
    -number of images (alt tags included?)
    -number of backlinks
    -a blog?
    -indexed pages
    -readability
    -number of headings (and numbers)
    -domain information
    -association with Twitter and Facebook
    -RSS Feed/Conversion Forms
    -Home Page Metadata
    -Analytics
    HELP!!!!

  2. #2
    Join Date
    May 2012
    Location
    BATH UK
    Posts
    7
    I can't think of a simple way to do this to be brutally honsest.

    I would write a "robots" style script that pulls the HTML of the page as text then reads it and parses it and logs all of the relevant information. If you wrote this in an object orientated way, you could spawn new "robots" to follow each link on the page and retrieve the data and post it all back to a database for analysis later?

    Is this the answer you were after? let me know if I've missed the target and I'll try and help you further.

    Andy Grant
    www.oodeveloper.com

  3. #3
    Join Date
    May 2012
    Posts
    2

    Perhaps.

    Yeah thats basically what I'm trying to do. So howdo I pull the code to a text file? Is there a function in PHP that can do this?

  4. #4
    Join Date
    May 2012
    Location
    BATH UK
    Posts
    7
    Try using the file_get_contents command

    See this link :

    http://php.net/manual/en/function.file-get-contents.php

    This should start you off.

    Andy Grant
    www.oodeveloper.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles