L
L
levedun2018-04-09 07:02:19
proxy
levedun, 2018-04-09 07:02:19

How to execute UrlFetchApp through Proxy in Javascript?

Send requests from google apps scripts UrlFetchApp to Instagram. graphql query.

var url ='https://www.instagram.com/graphql/query/?query_id=17888483320059182&variables=%7B%22id%22:%22'+id+'%22,%22first%22:%22'+count+'%22%7D';

A couple of days ago requests became banned. Error 403. I talked with a friend, he said about some kind of gasket script. I never understood what he was talking about. I told him about the proxy. He says try that too. He didn't really explain. How to use proxy address in javascript? Just insert the proxy address before the address bar?
the answer is:
Не удалось отправить запрос сервису https://www.instagram.com/graphql/query/?query_id=17888483320059182&variables=%7B%22id%22:%  %22,%22first%22:%22  %22%7D. Код ошибки: 403. Сокращенный ответ сервера: {"message": "forbidden", "status": "fail"}. Чтобы ознакомиться с полным ответом, воспользуйтесь опцией muteHttpExceptions. (строка 16, файл Код)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stomaksapp, 2018-04-09
@stomaksapp

I think you can somehow try through proxy sites.
True, there is, but such sites usually do not allow you to send a request by url, only through the site interface (well, or am I doing something wrong)
Something like https://site-proxy.com/proxy?site=https ://my-site.com (url made by me ☺ don't try to click on it)
--- Contact
me :)
g-apps-script.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question