#1  
Alt 30.Kasım.2019, 14:07
v4r1able - ait Kullanıcı Resmi (Avatar)
v4r1able
 

Şube 01 Adana

Üyelik tarihi: 30 Kasım 2019

Konu Sayısı: 1

Mesaj Sayısı: 1

Ticaret 0 / (0%)

Meslek: Webmaster / Programmer / Coder

İlgi Alanı: Php

Beğeniler: 0 / 0

Standart Sahibinden ilan veri çeken bot (Açık Kaynak Kodlu)


Veri çıktısı :
Screenshot by Lightshot

PHP- Kodu

<?php
// V4T1.EU Project v4r1able & t13r
if(empty($_GET["u"])) {
echo 
"GET Giriniz(?u=)";
exit;
}
$url htmlspecialchars($_GET["u"]);
$sahibinden_kontrol explode("/"$url);
if( 
$sahibinden_kontrol[2]=="www.sahibinden.com" ) { } else { echo "lütfen www.sahibinden.com üzerinden bir adres yazınız!(".$url.")"; exit; }
if( 
$sahibinden_kontrol[3]=="ilan" ) { } else { echo "lütfen www.sahibinden.com üzerinden bir ilan adresi yazınız!(".$url.")"; exit; }
$curl curl_init();
curl_setopt($curlCURLOPT_URL$url);
curl_setopt($curlCURLOPT_USERAGENT"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36");
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
curl_setopt($curlCURLOPT_SSL_VERIFYHOSTfalse);
curl_setopt($curlCURLOPT_SSL_VERIFYPEERfalse);
$sahibinden_gir curl_exec($curl);
preg_match_all('@<span class="classifiedId" id="classifiedId">(.*?)</span>@si',$sahibinden_gir,$ilan_kodu);
preg_match_all('@<span(.*?)</span>@si',$sahibinden_gir,$ilan_veri);
preg_match_all('@<span class="pretty-phone-part">(.*?)</span>@si',$sahibinden_gir,$telefon);
preg_match_all('@<h3>(.*?)</h3>@si',$sahibinden_gir,$para);
function 
duzelt($veri) {
$duzelt str_replace('>'''$veri);
$duzelt_2 str_replace('class=""'''$duzelt);
$duzelt_3 str_replace('class="classifiedId" id="classifiedId"'''$duzelt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GNsYXNzPSJmb3ItY2xhc3NpZmllZC1mYXZvdXJpdGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICBGYXZvcml5ZSBFa2xlbmRpa3RlbiBTb25yYWtpIEZpeWF0IFRhcmlow6dlc2k8L3NwYW4+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgoKICAgICAgICA8ZGl2IGNsYXNzPSJzZWN0aW9uLW1haW4iPgoKICAgICAgICAgICAgPHVsIGNsYXNzPSJwcmljZS1oaXN0b3J5LXN1bW1hcnkiPgogICAgICAgICAgICAgICAgPGxpIGNsYXNzPSJwcmljZS1oaXN0b3J5LXN1bW1hcnktaXRlbSBmaXJzdC1wcmljZSI+CiAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3M9Imhpc3RvcnktaGVhZGVyIGZvci1jbGFzc2lmaWVkLW93bmVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgxLBsYW7EsW4gWWF5xLFubGFuZMSxxJ/EsQpGaXlhdDwvcD4KICAgICAgICAgICAgICAgICAgICA8cCBjbGFzcz0iaGlzdG9yeS1oZWFkZXIgZm9yLWNsYXNzaWZpZWQtZmF2b3VyaXRlIj4KICAgICAgICAgICAgICAgICAgICAgICAgRmF2b3JpeWUgRWtsZW5kacSfaW5kZWtpIEZpeWF0PC9wPgogICAgICAgICAgICAgICAgICAgIDxwIGlkPSJpbml0aWFsUHJpY2VUZW1wbGF0ZSIgY2xhc3M9Imhpc3RvcnktYm9keSI+CgogICAgICAgICAgICAgICAgICAgIDwvcD4KICAgICAgICAgICAgICAgIDwvbGk+CiAgICAgICAgICAgICAgICA8bGkgY2xhc3M9InByaWNlLWhpc3Rvcnktc3VtbWFyeS1pdGVtIHByaWNlLWhvbGRlciI+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0icHJpY2UtY2hhbmdlLWljb24iPjwvZGl2PgogICAgICAgICAgICAgICAgPC9saT4KICAgICAgICAgICAgICAgIDxsaSBjbGFzcz0icHJpY2UtaGlzdG9yeS1zdW1tYXJ5LWl0ZW0gc2Vjb25kLXByaWNlIj4KICAgICAgICAgICAgICAgICAgICA8cCBjbGFzcz0iaGlzdG9yeS1oZWFkZXIgIj4KICAgICAgICAgICAgICAgICAgICAgICAgxLBsYW7EsW4gxZ51IEFua2kKRml5YXTEsTwvcD4KICAgICAgICAgICAgICAgICAgICA8cCBjbGFzcz0iaGlzdG9yeS1ib2R5IiBpZD0icmVhbFByaWNlVGVtcGxhdGUiPgogICAgICAgICAgICAgICAgICAgIDwvcD4KICAgICAgICAgICAgICAgIDwvbGk+CiAgICAgICAgICAgIDwvdWw+CgogICAgICAgICAgICA8ZGl2IGlkPSJ0YWJsZS13cmFwcGVyIiBjbGFzcz0idGFibGUtd3JhcHBlciI+CiAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9InByaWNlLWhpc3RvcnktdGFibGUiPgogICAgICAgICAgICAgICAgICAgIDx0Ym9keT4KICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9Imhpc3Rvcnktcm93Ij4KICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJmb3ItY2xhc3NpZmllZC1vd25lciI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICDEsGxhbsSxbiBZYXnEsW5sYW5kxLHEn8SxCkZpeWF0PHAgY2xhc3M9ImlubmVyLWRhdGUiPllhecSxbmxhbm1hIFRhcmloaTo8L3A+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0iZm9yLWNsYXNzaWZpZWQtZmF2b3VyaXRlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIEZhdm9yaXllIEVrbGVuZGnEn2luZGVraSBGaXlhdDxwIGNsYXNzPSJpbm5lci1kYXRlIj5GYXZvcml5ZSBFa2xlbWUgVGFyaWhpOjwvcD4KICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJoaXN0b3J5LXByaWNlIj48L3RkPgogICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgIDwvdGFibGU+CiAgICAgICAgICAgIDwvZGl2PgoKICAgICAgICAgICAgPGgzIGNsYXNzPSJuby1wcmljZS1oaXN0b3J5Ij4KICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPSJmb3ItY2xhc3NpZmllZC1vd25lciI+CiAgICAgICAgICAgICAgICAgICAgxLBsYW4geWF5xLFubGFuZMSxa3RhbiBzb25yYSBmaXlhdCBkZcSfacWfaWtsacSfaSBvbG1hbcSxxZ90xLFyLjwvc3Bhbj4KICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPSJmb3ItY2xhc3NpZmllZC1mYXZvdXJpdGUiPgogICAgICAgICAgICAgICAgICAgICAgICBGYXZvcml5ZSBla2xlbmRpa3RlbiBzb25yYSBmaXlhdCBkZcSfacWfaWtsacSfaSBvbG1hbcSxxZ90xLFyLjwvc3Bhbj4=");
$html_sil explode($base64$para[1][1]);
echo 
"URL: ".$url;
echo 
"<br>";
echo 
$html_sil[0];
echo 
"<br>";
echo 
"<br>";
echo 
duzelt($ilan_kodu[1][0]);
for(
$i=42$i<60$i++)
{
echo 
'<br>';
echo 
duzelt($ilan_veri[1][$i]);
}
echo 
'<br>';
echo 
$telefon[1][0];
echo 
'<br>';
echo 
$telefon[1][1];
?>

__________________
webmastersitesi.net Oto İmza! Profilinizden değiştirebilirsiniz.

Konu v4r1able tarafından (30.Kasım.2019 Saat 14:08 ) değiştirilmiştir. Sebep: türkçe karakter
Alıntı ile Cevapla
Sponsored Links
Reklam Alanı

Yeni Konu Aç  Cevap Yaz

Etiketler
açýk, acık, çeken, bot, çeken, ilan, kaynak, kodlu, sahibinden, veri


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı

Hizli Erisim

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Satış: konu silindi efes Script Alış Satış 3 15.Kasım.2019 10:17
Türkiyenin en gelişmiş ilan scripti efes Script Alış Satış 1 05.Temmuz.2018 19:35


 



Forum Hakkında

Forum Adresimizde T.C.K 20.ci Madde ve 5651 Sayılı Kanun'un 4.cü maddesinin (2).ci fıkrasına göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur.

webmaster forumu

İYİ Forumlar diler..

Yararlı Linkler

Sosyal Paylaşım


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Image resizer by SevenSkins
Tema Düzenleme: miZah - admin

azar sohbet