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
/* <system section="theme" selected="6653812171397406126"> */ | |
@import url("http://hatenablog.com/theme/6653812171397406126.css"); | |
/* </system> */ | |
@media screen and (min-width:1110px) { | |
#content-inner, #n-menu .menu-inner, #n-menu .menu-inner { | |
max-width: 2400px; | |
} | |
.entry-header, .entry-content { |
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
require('workflows.php'); | |
$w = new Workflows(); | |
// Grab input and build query url string | |
$in = "{query}"; | |
$url = "http://completion.amazon.co.jp/search/complete?method=completion&q=".urlencode( $in )."&search-alias=aps&mkt=6&x=updateISSCompletion&noCacheIE=1295031912518"; | |
// Grab the data from Amazon | |
$str = $w->request( $url ); |
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
require_once('workflows.php'); | |
$wf = new Workflows(); | |
$orig = "{query}"; | |
$xml = $wf->request( "http://google.co.jp/complete/search?hl=ja&ie=utf_8&oe=utf_8&output=toolbar&q=".urlencode( $orig ) ); | |
$xml = simplexml_load_string( $xml ); | |
$int = 1; | |
foreach( $xml as $sugg ): | |
$data = $sugg->suggestion->attributes()->data; |