没有ProfilePage索引,但我有LoginAndSignupPage [英] Don't have ProfilePage index but i have LoginAndSignupPage

查看:71
本文介绍了没有ProfilePage索引,但我有LoginAndSignupPage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题是两天前突然出现的.我有一个prestashop模块,可让我从Instagram页面检索图像.

I have a problem that suddenly appeared two days ago. I have a prestashop module that allows me to retrieve images from an Instagram page.

它运行得很好,但是突然之间没有任何效果.我有一个错误是"ProfilePage:未定义的索引"我做了很多var_dump,我注意到json不再具有该索引,它变成了LoginAndSignupPage.

It was working very well but all of a sudden, nothing is working. I have an error that is "ProfilePage: Undefined index" I did a lot of var_dump and I notice that the json no longer has this index, it became LoginAndSignupPage.

奇怪的是,具有相同的模块,相同的代码,它可以在预生产中工作,也可以在本地工作,但不适用于生产.起初,我以为网站的托管者做了一些更改,但是没有,他们没有...

What's stranger, with the same module, the same code, it works on the pre-production, locally too but not on the production. At first, I thought the site's host had made some changes but no, they didn't...

https://imgur.com/3utc6bB

你有什么主意吗?

谢谢您的帮助

推荐答案

问题是Instagram在过去一周左右的时间内限制了其未登录(来宾)访问(基于IP地址).

The issue is Instagram over the last week or so has restricted their unlogged-in (guest) access (based on IP address).

对服务器进行大量查询后,他们将开始显示请登录"页面().

After a large amount of queries to their servers, they will begin showing a "Please login" page ().

唯一的解决方法是让希望使用此过程的Instagram上的每个用户都创建一个API密钥(这是不现实的,因为主要是我们不认识他们).否则,在将请求发送到Instagram时,我们将需要使用代理,以便不会看到您从同一IP地址多次访问其服务器.

The only way around this would be to have each of your Users on Instagram who wish to use this process create an API Key (This is unrealistic because mainly we do not know them). Otherwise we'll need to use a proxy when issuing the request to Instagram so it doesn't see you hit their servers multiple times from the same IP address.

在尚未打入Instagram服务器的全新IP地址上使用代码就可以了.但是,经过多次查询(一旦IP被列入黑名单),我得到的是同一登录页面,而不是instagram帐户.

Using code on on a brand new IP address that hasn't hit Instagram's servers work just fine. However after multiple queries (once the IP is blacklisted) I get the same login page not the instagram account.

根据Instagram的API文档,他们希望您为希望拉照片的每个用户提供一个API密钥(将API密钥保持在沙盒模式).再次对我来说这似乎是不现实的.我们可以"将我们的应用程序提交到Instagram进行审查(从理论上说,可以"让您从同一API密钥为其他用户提取照片),但是我非常怀疑他们是否会批准从其服务器中提取图像和元数据的应用程序.

According to Instagram's documentation for their API they want you to have a API Key for every User who wishes to pull their photos (keeping the API key in sandbox mode). Again this seems unrealistic to me. We "can" submit our App on Instagram for review (which theoretically "may" let you pull photos for other Users from the same API key), but I highly doubt they'd approve an app that pulls images and metadata off their servers.

这篇关于没有ProfilePage索引,但我有LoginAndSignupPage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆