当我刮擦Instagram帐户时,错误。将`?__ a = 1`添加到URL不再工作了。有线索吗?
直到2天前,我能够通过在URL末尾添加?__ a = 1
来刮擦Instagram帐户。
例如:https://www.instagram.com/xavi/?___A=1
现在,当我做同样的事情时,我会得到此响应:
for (;;);
{
"__ar": 1,
"error": 1357004,
"errorSummary": "Sorry, something went wrong",
"errorDescription": "Please try closing and re-opening your browser window.",
"payload": null,
"hsrp": {
"hblp": {
"consistency": {
"rev": 1005632913
}
}
},
"lid": "7105412861952089317"
}
也许Instagram可能对他们的API进行了一些更改。
有什么线索有关如何刮擦用户信息吗?还是有解决方法?
Until 2 days ago, I was able to scrape Instagram accounts by adding ?__a=1
at the end of the URL.
E.g.: https://www.instagram.com/xavi/?__a=1
Now, when I do the same thing I get this response:
for (;;);
{
"__ar": 1,
"error": 1357004,
"errorSummary": "Sorry, something went wrong",
"errorDescription": "Please try closing and re-opening your browser window.",
"payload": null,
"hsrp": {
"hblp": {
"consistency": {
"rev": 1005632913
}
}
},
"lid": "7105412861952089317"
}
Maybe Instagram might have done some changes in their API.
Is there any clue on how to scrape user information? Or is there any workaround?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我尝试了不同的方式,但没有得到正确的答案。现在,使用此链接找到正确的方法。我可以进一步指导您获取有关ID
https://www.instagram.com/web/search/topsearch/?context=user&Amp;Count=0&Amp;Query=Xavi
I tried different ways and did not get the right answer. For now, use this link to find the right way. I can further guide you to get more information about an ID
https://www.instagram.com/web/search/topsearch/?context=user&count=0&query=xavi
如果您使用的是cookie,则只需从cookie删除
ds_user_id
字段它可以正常工作
If you are using cookie then just remove the
ds_user_id
field from cookieit will work fine
您可以使用吗
dis
?__ a = 1& __ d =在URL末尾的
,例如: https://www.instagram.com/instagram/?___ = 1& amp;__d=1
You can use
?__a=1&__d=dis
At the end of your URL
E.g.: https://www.instagram.com/instagram/?__a=1&__d=1