169 похожих чатов

Hi guys , can anyone help me ? when i

open page in web browser it works but when i make get request in postman , it returns error, i have tried to use vpn but it doesn't help

10 ответов

10 просмотров

Did you try copying the request from network tab in devtools in browser?

because postman has it's own user-agent maybe the website or their CDN provider has blocked non browser user-agents

Tigran- Автор вопроса
Пользователь 61930
because postman has it's own user-agent maybe the ...

I am getting the same issue when i make request in my python code

Tigran
I am getting the same issue when i make request in...

well it depends on the library that you use. are you trying to crawl the website? if so most crawlers do have their own user-agent to respect the website's policy

Tigran- Автор вопроса
Thomas
Did you try copying the request from network tab i...

What i should try , i don’t understand?

Tigran- Автор вопроса
Tigran
What i should try , i don’t understand?

F12, press network tab, reload, right click the main request (usually the first one) and copy it

Tigran- Автор вопроса
Thomas
F12, press network tab, reload, right click the ma...

i could copy the request , but i need it to be copied in code every hour

Tigran
i have used the request library in python

the request library by default has a user agent like this python-requests/2.2.1 CPython/2.7.5 Darwin/13.1.0 try to manually fill the user-agent with firefox user-agent for example. maybe that could help.

Похожие вопросы

Обсуждают сегодня

Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
48
Такой вопросец - есть функция function MySuperDuperConcat(const a: array of AnsiString): AnsiString; Как мне в её теле сделать вот так? Result:=Concat(a); А не грустный вариан...
notme
15
type TObj = object procedure Init; virtual; end; TObj1 = object(TObj) procedure Init; override; end; procedure TObj1.Init; begin inherited; end; procedur...
Alexander 👋
29
А чем вам питонисты не угодили?😂
.
79
Всем привет. Поделитесь, пожалуйста, опытом. Есть форма, на которой имеется dbgrid и кнопки: добавить, редактировать, удалить. Если нет записей в dbgrid, то кнопки редактирова...
Евгений
4
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
86
Вот смотрите у меня есть два стрима сейчас fs, cs: TStream; fs := TFileStream.Create('filename'); cs := TCompressionStream.Create(compression_level, fs); Я хочу сделать так: ...
notme
5
type TExtensions<GExtender>=class function GetExtension<GEntityExtenderType>:GEntityExtenderType; end; function TExtensions<GExtender>.GetExtension<GEntityExtenderType...
zamtmn
8
Всем здравствуйте! Я хотел узнать сколько стоит средняя месячная зарплата у Electron js разработчиков? Мне очень это важно и нужно, плиз помогите узнать эту инфу! Для Джунио...
U.K.
10
Можно ли загрузить скрипт py в бота чтобы он работал по нему? как это сделать?
huskadam #RCC Фанат? @hitlerpvp
13
Карта сайта