使用python获取instagram pfp
我正在尝试使用instagram帐户的“API”获取其porifle图片 一个示例URL是: 它看起来(是?)是一个json和D,所以我正在尝试这样做使用python获取instagram pfp,python,json,python-3.x,python-requests,instagram-api,Python,Json,Python 3.x,Python Requests,Instagram Api,我正在尝试使用instagram帐户的“API”获取其porifle图片 一个示例URL是: 它看起来(是?)是一个json和D,所以我正在尝试这样做 r = requests.get(f'https://www.instagram.com/test/?__a=1') link = r.json() pfp_url = link["profile_pic_url_hd"] 尽管如此,这是行不通的。我要走了 JSONDecodeError: Expecting value:
r = requests.get(f'https://www.instagram.com/test/?__a=1')
link = r.json()
pfp_url = link["profile_pic_url_hd"]
尽管如此,这是行不通的。我要走了
JSONDecodeError: Expecting value: line 1 column 1 (char 0)