python do not follow redirect -


I'm trying to get data from the

I tried:

  r = requests.get ( "https://mobile.bet365.com/sport/default.aspx", allow_redirects = False) print Arktekst  

but I always get to bypass the redirect? Any help would be greatly appreciated. Thank you

You should send language approved your request header:

  Header = {"Accept-language": "N-US, N; Q = 0.5"} R = Requests. ( "Https://mobile.bet365.com/sport/default.aspx", headers = headers) print Arktekst  

Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -