您将如何检索用户的Instagram帖子,为一个公共帐户?
我尝试过instagram.com/username/?__a=1
,但这并不能通过cURL或Post请求来实现--这也违反了我认为的服务条款。
另一种可能的解决方案是使用Instagram基本显示API,但不幸的是,它们在过去一年中几乎不接受新帐户。
是否有一种方法可以检索用户过去的9(左右) Instagram帖子?
发布于 2021-01-18 21:34:12
你可能是对的,这违背了他们的服务条款,但这似乎是可能的。
您可能只需要-L参数,所以您的卷曲跟随重定向..。
请求:
curl -L https://www.instagram.com/espn/?__a=1
响应:
{
"logging_page_id":"profilePage_1320207",
"show_suggested_profiles":true,
"show_follow_dialog":false,
"graphql":{
"user":{
"biography":"Click the link ⤵️",
"blocked_by_viewer":false,
"restricted_by_viewer":false,
"country_block":false,
"external_url":"https://linkin.bio/ig-espn",
"external_url_linkshimmed":"https://l.instagram.com/?u=https%3A%2F%2Flinkin.bio%2Fig-espn&e=ATOJohcCMk3afG1YAhT_AfhEq7ce4wZCpcFsTnB0PII_VAchFDkGsw6xzG1JZl80GU2KJOcTe64DxHaZvSWgGmCTPUJ8--McX102&s=1",
"edge_followed_by":{
"count":18323832
},
"fbid":"17841401206210020",
"followed_by_viewer":false,
"edge_follow":{
"count":466
},
"follows_viewer":false,
"full_name":"ESPN",
...
答复很大,但我可以证实最近有12个帖子被退回。
https://stackoverflow.com/questions/65781937
复制相似问题