Retourner au contenu associé (entrée de forum : JSON how to get the data I want.)
Posté par BFG le 02 septembre 2015 à 10:04. En réponse au message JSON how to get the data I want.. Évalué à 5.
Avec curl pour faire la requête HTTP et jq pour interpréter le JSON :
curl 'https://fr.wikipedia.org/w/api.php?action=query&titles=Linux&prop=revisions&rvprop=content&format=json' | jq -r '.query.pages[] | .revisions[] | .["*"]'
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# jq
Posté par BFG . En réponse au message JSON how to get the data I want.. Évalué à 5.
Avec curl pour faire la requête HTTP et jq pour interpréter le JSON :
curl 'https://fr.wikipedia.org/w/api.php?action=query&titles=Linux&prop=revisions&rvprop=content&format=json' | jq -r '.query.pages[] | .revisions[] | .["*"]'