REST API
任意のデータを簡単に取得できます
jq
コマンドを使えば、REST APIで取得したJSON形式のデータを簡単にCSVやTSVに変換して保存できます。
% curl -s https://train.teraren.com/lines/11302/stations.json | jq -r '.[] | [.station_name, .lat, .lon] | @csv'
"大崎","35.619772","139.728439"
"五反田","35.625974","139.723822"
"目黒","35.633923","139.715775"
"恵比寿","35.646685","139.71007"
"渋谷","35.658871","139.701238"
"原宿","35.670646","139.702592"
"代々木","35.683061","139.702042"
"新宿","35.689729","139.700464"
"新大久保","35.700875","139.700261"
"高田馬場","35.712677","139.703715"
"目白","35.720476","139.706228"
"池袋","35.730256","139.711086"
"大塚","35.731412","139.728584"
"巣鴨","35.733445","139.739303"
"駒込","35.736825","139.748053"
"田端","35.737781","139.761229"
"西日暮里","35.731954","139.766857"
"日暮里","35.727908","139.771287"
"鶯谷","35.721484","139.778015"
"上野","35.71379","139.777043"
"御徒町","35.707282","139.774727"
"秋葉原","35.698619","139.773288"
"神田","35.691173","139.770641"
"東京","35.681391","139.766103"
"有楽町","35.675441","139.763806"
"新橋","35.666195","139.758587"
"浜松町","35.655391","139.757135"
"田町","35.645736","139.747575"
"高輪ゲートウェイ","35.6355","139.7407"
"品川","35.62876","139.738999"
データソース