Amazonの公式サイトの内容をとってくるサンプルです。
PHP
<?php
$file="https://www.amazon.co.jp/";
$json=file_get_contents($file,false,stream_context_create());
echo $json;
?>
そのまますべて取ってくることができます。
正規表現と組み合わせると、画像だけ取得するなんてこともできます。
More than 5 years have passed since last update.
Amazonの公式サイトの内容をとってくるサンプルです。
<?php
$file="https://www.amazon.co.jp/";
$json=file_get_contents($file,false,stream_context_create());
echo $json;
?>
そのまますべて取ってくることができます。
正規表現と組み合わせると、画像だけ取得するなんてこともできます。
Register as a new user and use Qiita more conveniently