ForumTEK.Net - IRC Forumu

ForumTEK.Net - IRC Forumu (http://www.forumtek.net/index.php)
-   PHP Hazır Kodlar (http://www.forumtek.net/forumdisplay.php?f=302)
-   -   Basit İnstagram'dan Resim Çeken Bot (http://www.forumtek.net/showthread.php?t=3374)

mIRC 05 Nisan 2016 22:21

Basit İnstagram'dan Resim Çeken Bot
 
Googleda dolaşırken bulduğum bir kod umarım işinizi görür....

PHP- Kodu:

<?php 
$site 
= "http://websta.me/p/1183499885103237159_1213299817"; // Buraya websta veya instagram URLsini yazın. 
$parcala = '@<meta property="og:image" content="(.*?)">@si'; // Open Graph Meta Etiketinden Resim URLsini buluyoruz. 
$getir = file_get_contents($site);  
preg_match_all($parcala,$getir,$resim); 
?> 
<center> 
<img src="<?php echo $resim[1][0] ?>"> 
</center>



All times are GMT +3. The time now is 00:15.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.