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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -