Created
December 13, 2016 16:36
-
-
Save ko31/5f8d9ffd6d75993365e29a5aefe570db to your computer and use it in GitHub Desktop.
【PHP】全棋士データからjsonファイル作成
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'scraper.php'; | |
$scraper = new Scraper(); | |
$data = array(); | |
for ($i=1; $i<=308; $i++) { | |
$_kishi = $scraper->getKishi($i); | |
if ($_kishi) { | |
$data[] = $_kishi; | |
} | |
} | |
file_put_contents("kishi_all.json", json_encode($data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment