How to get total pageview of any site through ASP

Discussion in 'C#' started by starter, Jul 20, 2010.

  1. #1
    I want to extract some information for sites (not owned by me) like daily pageview, alexarank, google pagerank, Host server IP address.
     
    starter, Jul 20, 2010 IP
  2. bencummins

    bencummins Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you will struggle to do this with ASP - the only way I can think of, is by using the Microsoft XMLHTTP object, and pulling he pages, and then writing a function to parse the response using regex
     
    bencummins, Jul 21, 2010 IP
  3. starter

    starter Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    dear bencummins
    can you please provide the codes
     
    starter, Jul 22, 2010 IP
  4. bencummins

    bencummins Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try this http ://www.smartertools.com/forums/p/24174/65838.aspx
     
    bencummins, Jul 22, 2010 IP
  5. starter

    starter Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Dear bencummins,

    i am not a site manager. I want to extract the status of others sites which are not managed by me. Like alexa doing , as it shows traffic status of any site.
     
    starter, Jul 22, 2010 IP
  6. sauravmandhotra

    sauravmandhotra Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    go in global .asax
    there is application.start()
    write code in it "a counter type"
     
    sauravmandhotra, Jul 31, 2010 IP
  7. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #7
    You would need to scrape and then parse the data from Alexa itself, due to the amount of data that Alexa holds you would have to do this 'on the fly', meaning you would scrape the data as the user requests it... This would be fairly slow and you may run into trouble with Alexa barring requests from your webserver. I am also not sure of the legal issues this may incur. There is way's around this by using proxy servers but there is no easy way to do this. It's possible, for an intermediate to advanced developer. It would probably be much easier with asp.net rather than classic ASP, but still possible in both.
     
    camjohnson95, Aug 3, 2010 IP