エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
import urllib.request import json url = 'https://petstore.swagger.io/v2/store/inventory' try: wit... import urllib.request import json url = 'https://petstore.swagger.io/v2/store/inventory' try: with urllib.request.urlopen(url) as response: body = json.loads(response.read()) headers = response.getheaders() status = response.getcode() print(headers) print(status) print(body) except urllib.error.URLError as e: print(e.reason) >python get.py [('Date', '2020年4月10日 10:25:52 GMT'), ('Access-Contr