これが可能かどうかはわかりませんが、基本的にはhttp://www.nfl.com/scoresにアクセスして、特定の週のスコアを取得したいと考えています。各ゲームには特定のクラスがあるようで、それらの html にアクセスできればスコアとチームを簡単に確認できます。AJAX か JSON、またはその組み合わせを使用する必要があると思います。ありがとう!
アップデート:
プロキシ.php
<html>
<head>
</head>
<body>
<?php
$url = "http://www.nfl.com/scores/2012/PRE1http://www.nfl.com/scores/2012/PRE1";
$htm = file_get_contents($url);
echo $htm;
?>
</body>
</html>
nflScores.php
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<p></p>
<script type="text/javascript">
$.get("proxy.php", function(response) {
alert(response) });
</script>
</body>
</html>
アラート ボックスが大量の html でいっぱいになっているようです。特定の要素を見つけるために、ある種の .getElementByID() メソッドを使用できますか?
ありがとう