スポンサーサイト
上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。
新しい記事を書く事で広告が消せます。
エロ目的でプログラマーになりたいブラザーの為、エロ、非エロ問わずプログラムの知識や勉強になったことを色々とぶちまけます。
<?php
require_once('simple_html_dom.php');
$html = file_get_html('http://jp.xvideos.com');
$area = $html->find('div.mozaique', 0);
foreach ($area->find('div.thumbInside') as $div) {
$vurl = $div->find('a', 0)->href;
$thum = $div->find('img', 0)->src;
$vlist[] = array('vurl' => $vurl,
'thum' => $thum);
}
$body = "";
foreach ($vlist as $item) {
$body .= "<a href='http://jp.xvideos.com" . $item["vurl"] . "'>";
$body .= "<img src='" . $item["thum"] . "'>";
$body .= "</a>";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>xvideosの動画だよ</title>
</head>
<body>
<?php
echo $body;
?>
</body>
</html>
<?php
require_once('simple_html_dom.php');
$html = file_get_html('http://jp.xvideos.com');
$area = $html->find('div.mozaique', 0);
foreach ($area->find('div.thumbBlock') as $div) {
$vurl = $div->id;
$thum = $div->find('img', 0)->src;
$vlist[] = array('vurl' => $vurl,
'thum' => $thum);
}
$body = "";
foreach ($vlist as $item) {
$video = explode("_", $item["vurl"]);
$body .= "<a href='test2.php?video=" . $video[1] . "' target='_blank'>";
$body .= "<img src='" . $item["thum"] . "'>";
$body .= "</a>";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>xvideosの動画だよ</title>
</head>
<body>
<?php
echo $body;
?>
</body>
</html>
<?php
$body = "<iframe src='http://flashservice.xvideos.com/embedframe/" . $_GET['video'] . "'";
$body .= " frameborder=0 width='600' height='480' scrolling=no></iframe>";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>xvideosの動画だ!</title>
</head>
<body>
<?php
echo $body;
?>
</body>
</html>