查询获取数据的问题

查询获取数据的问题

本文介绍了Instagram?__ a = 1网址不再起作用& amp; amp;graphql/查询获取数据的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前使用cookie ig_pr 几天后被阻止.看起来现在获取数据的唯一方法是使用具有特定值的 sessionid

After a few days using cookie ig_pr two days ago is block. Looks like the only way to get the data now is use sessionid with a specific value

我使用的是instagram吗?__ a = 1网址来读取instagram用户的所有帖子.

I was using instagram ?__a=1 url to read all the post of instagram's users.

几个小时前,响应发生了变化,现在不允许我使用 max_id 进行分页.

A few hours ago there was a change in the response and now doesn't allow me to use max_id to paginate.

在我通常向发出请求之前

Before I usually sent a request to

https://www.instagram.com/{{username}}/?__ a = 1

,并在响应中使用 graphql.edge_owner_to_timeline_media.page_info.end_cursor ,我使用新的max_id调用了同一页面

and using the graphql.edge_owner_to_timeline_media.page_info.end_cursor in the response I called the same page with a new max_id

https://www.instagram.com/{{username}}/?__ a = 1& max_id = {{end_cursor}}

现在,每个调用中的 end_cursor 更改&max_id无法正常工作.

Now the end_cursor changes in each call & max_id is not working.

请帮助:)

推荐答案

至少在过去的几天中,query_hash不会发生变化.它指示查询的类型.

The query_hash does not change, at least in the past few days. It indicate what TYPE of query it is.

下面列出了我所知道的4种查询类型,希望对您有所帮助.

Below listed 4 query types I knew, hope these help.

https://www.instagram下加载更多媒体.com/someone/?__ a = 1

Load more media under https://www.instagram.com/someone/?__a=1

https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&variables={"id":"93024","first":12,"after":"XXXXXXXX"}

(Instagram从2018-04-12开始禁止上述访问.您必须删除__a = 1并在一个代码块中提取JSON.在HTML中查找"window._sharedData")

(Instagram blocked the above access since 2018-04-12. You have to remove the __a=1 and extract the JSON inside a block. Look for "window._sharedData" in the HTML)

https://下加载更多媒体www.instagram.com/explore/tags/iphone/?__a=1

Load more media under https://www.instagram.com/explore/tags/iphone/?__a=1

https://www.instagram.com/graphql/query/?query_hash=298b92c8d7cad703f7565aa892ede943&variables={"tag_name":"iphone","first":12,"after":"XXXXXXXX"}

https://下加载更多媒体www.instagram.com/explore/locations/703629436462521/?__a=1

Load more media under https://www.instagram.com/explore/locations/703629436462521/?__a=1

https://www.instagram.com/graphql/query/?query_hash=ac38b90f0f3981c42092016a37c59bf7&variables={"id":"703629436462521","first":12,"after":"XXXXXXXX"}

https://www.instagram加载更多评论.com/p/Bf-I2P6grhd/

Load more comments for https://www.instagram.com/p/Bf-I2P6grhd/

https://www.instagram.com/graphql/query/?query_hash=33ba35852cb50da46f5b5e889df7d159&variables={"shortcode":"Bf-I2P6grhd","first":20,"after":"XXXXXXXX"}

其中XXXXXXXX是原始请求的end_cursor

where XXXXXXXX is the end_cursor from the original request

这篇关于Instagram?__ a = 1网址不再起作用& amp; amp;graphql/查询获取数据的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 21:06