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
https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=【解析するURL】&strategy=【解析する種類】&key=【APIキー】 |
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
https://www.google.co.jp/ | |
http://www.yahoo.co.jp/ | |
http://www.msn.com/ |
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 | |
// APIキー | |
$key = "Your API Key"; | |
// mobile or desktop | |
$strategy = "mobile"; | |
// URLリスト読み込み | |
$lines = file('url.txt', FILE_IGNORE_NEW_LINES); |
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 sample.php | |
https://www.google.co.jp/,59 | |
http://www.yahoo.co.jp/,66 | |
http://www.msn.com/,73 |
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
札幌第一,http://www.kibou.ac.jp/daiichi/ | |
青森山田,http://www.aomoriyamada-hs.jp/ | |
八戸学院光星,http://kh.hachinohe-u.ac.jp/ | |
木更津総合,http://www.kimigaku.ed.jp/sohgoh/ | |
常総学院,https://www.joso.ac.jp/ | |
桐生第一,http://www.kiriichi.ac.jp/ | |
東海大甲府,http://www.kofu.tokai.ed.jp/ | |
花咲徳栄,http://www.hanasakitokuharu-h.info/ | |
関東一,https://www.kanto-ichiko.ac.jp/ | |
東邦,http://www.toho-h.ed.jp/ |
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 | |
$lines = file('url.txt', FILE_IGNORE_NEW_LINES); | |
$count = 0; | |
foreach ($lines as $line) { | |
$val = explode(',', $line); | |
$html = file_get_contents($val[1]); | |
if (strpos($html, 'wp-content') !== false) { | |
echo $val[0] . "は WordPress です\n"; |
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 | |
$lines = file('url.txt', FILE_IGNORE_NEW_LINES); | |
foreach ($lines as $line) { | |
$val = explode(',', $line); | |
$tags = get_meta_tags($val[1]); | |
if (isset($tags['generator'])) { | |
echo $val[0] . "は " . $tags['generator'] . " です\n"; | |
} | |
} |
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('LineBot.php'); | |
// LINE:チャンネルID | |
$CHANNEL_ID = '[LINEのチャンネルID]'; | |
// LINE:チャンネルシークレット | |
$CHANNEL_SECRET = '[LINEのチェンネルシークレット'; | |
// LINE:MID | |
$CHANNEL_MID = '[LINEのMID]'; |
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('LineBot.php'); | |
// LINE:チャンネルID | |
$CHANNEL_ID = '[LINEのチャンネルID]'; | |
// LINE:チャンネルシークレット | |
$CHANNEL_SECRET = '[LINEのチェンネルシークレット'; | |
// LINE:MID | |
$CHANNEL_MID = '[LINEのMID]'; |
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
{"nodes":[ | |
{"name":"クラーク国際"}, | |
{"name":"北海"}, | |
{"name":"嘉手納"}, | |
{"name":"北海道"}, | |
{"name":"東京"}, | |
{"name":"沖縄"} | |
], | |
"links":[ | |
{"source":0,"target":3,"value":10}, |