SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast almtechnology's Avatar
    Join Date
    Sep 2006
    Location
    Karachi,Pakistan
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Read Data from Website

    my asp application want to read data from www.kse.net.pk how this is possible
    ALM TECHNOLOGY

    MUHAMMAD IRFAN MOTIWALA
    CELL (92)0333 3966779

  2. #2
    Original Gangster silver trophy Thing's Avatar
    Join Date
    Oct 2000
    Location
    Philadelphia, PA
    Posts
    4,708
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What do you want to read? Are you talking about scrapping data from that site to your own? Here is a simple script to pull the data from a single page and display it:

    Code:
    Dim objXMLHTTP, strScrape, strURL 
    strURL = "http://www.cnn.com" 
    Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") 
    objXMLHTTP.Open "GET", strURL, False 
    objXMLHTTP.Send 
    strScrape = objXMLHTTP.responseText 
    Set objXMLHTTP = Nothing 
    response.write strScrape


Bookmarks

Posting Permissions

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