This file contains 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
class ScrapingClient | |
require 'open-uri' | |
def get_proxy_host_list | |
doc = self.get_nokogiri_obj("http://lab.magicvox.net/proxy/") | |
host_port_list = [] | |
doc_list = doc.css("tr") |
This file contains 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 | |
if($_SERVER["REQUEST_METHOD"] != "POST"){ | |
// GETによるアクセス | |
}else{ | |
// POSTによるアクセス | |
$cmd = '. /var/www/html/update.sh'; | |
$retstr = system($cmd, $res); | |
$fp = fopen("deploy.log", "a"); | |
fwrite($fp, date('c')."\n"); |