Working with Data Sources 2
Posted 阿难的机器学习计划
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Working with Data Sources 2相关的知识,希望对你有一定的参考价值。
1. While we would like to get some data from the server with authorization, we should apply token from the website frist. Then we pass token in the request command by using headers.
headers = {"Authorization": "token 1f36137fbbe1602f779300dad26e4c1b7fbab631"}
response = requests.get("https://api.github.com/users/VikParuchuri", headers=headers)
2.
以上是关于Working with Data Sources 2的主要内容,如果未能解决你的问题,请参考以下文章