This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyedek.php
43 lines (32 loc) · 1.41 KB
/
yedek.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
set_time_limit(0);
/**
* echo '<pre>';.
* print_r($gug);
* echo '</pre>';
*/
$url = 'http://sourcedigit.com/how-to/page/6/';
$veri = file_get_contents($url);
//$botetiket = preg_match_all('@<span class="entry-tags">(.*?)</span>@si',$veri,$etiket);
$linki = preg_match_all('@<div class="entry-content" itemprop="text"><a class="entry-image-link" href="(.*?)" aria-hidden="true"><img width="150" height="150" src="(.*?)" class="alignleft post-image entry-image" alt="(.*?)" itemprop="image" /></a>@si', $veri, $linkibul);
//$bbet = strip_tags($etiket[0]);
$gug = $linkibul[1];
//echo "<h1>$gug</h1><hr>";
//echo '<textarea name="icerik" id="" cols="30" rows="10">'.$icerik.'</textarea>';
$say = count($gug);
if ($say > 0) {
for ($i = 0; $i < $say; $i++) {
//Linkleri Çekiyoruz
echo '<br>';
$git = $gug[$i].'</br>';
$bascik = file_get_contents($git);
$botbaslik = preg_match_all('@<h2 class="entry-title" itemprop="headline"><a href="(.*?)">(.*?)</a></h2>@si', $veri, $baslik);
$boticerik = preg_match_all('@<div class="entry-content" itemprop="text"><p>(.*?)</p></div>@si', $gug[0], $icerik);
print_r($icerik);
$baslink = $baslik[0];
// başlık echo strip_tags($baslink).'<br>';
}
} else {
echo 'içerik Bulunamadı Hacı..';
}
?>