Merhaba aşağıdaki döngüde içerik 200 dönmesine rağmen, veritabanından çekmek istediğim ‘ad_link’ ekrana gelmiyor. Sebebini bulmama yardımcı olur musunuz?
response = requests.get(ad_link,headers=headers,allow_redirects=True)
print(response)
if response.history:
print("Request was redirected")
for resp in response.history:
print(resp.status_code, resp.ad_link)
print("Final destination:")
print(response.status_code, response.ad_link)
else:
print("Request was not redirected")
Request was not redirected, yazıyor. Durum kodu ise 200.