URL = ' https://api.github.com/some/endpoint ' ヘッダー = { ' ユーザエージェント':' 私のアプリ/ 0.0.1 ' } R = requests.get(URL、ヘッダー=ヘッダ)