Xmlhttp İle Google Sonucları'nı Çekme Sorunu
-
canafar = "http://www.google.com/search?hl=tr&q=tahribat"
Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
xmlHttp.Open "GET", canafar, false
xmlHttp.Send()
canafarsn = xmlHttp.ResponseText
response.Write canafarsnasp ile bu şekilde google sonuçlarını almaya çalısıyorum ama forbidden die deişik deişik şeyler yazıyo heralde izin vermiyo
ama visual basic le şu şekilde çekmek istediğimde verileri alabiliyorum
Dim google As New XMLHTTP
Private Sub Form_Load()
google.open "GET", "http://www.google.com/search?hl=tr&q=tahribat", False
google.send ""
Text1.Text = google.responseText
End Subşimdi sorum şu ben bunu asp ile nasıl yapabilirim ya da yapabilirmiyim asp ile yapamazsam hangi siyle yapabilirim asp php asp.net falan filan....
-
asp de xmlhttp ile çekince google izin vermiyomuş.
php ile şu şekilde çektim ne varsa =)
$site=file_get_contents("http://www.google.com/search?hl=tr&q=tahribat");
echo $site;
belki lazım olur birine =)
