Requests python- Authentication failed NOT support JavaScript

1
# -*- encoding: utf-8 -*-

import requests, json
from requests.auth import HTTPBasicAuth
from bs4 import BeautifulSoup

headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
responseGet = requests.get(url, auth=HTTPBasicAuth(user, pass), timeout=None, headers=headers)

But he answers me with this

responseGet.content

<body bgcolor="#ffffff" text="#666666" onLoad="loadnext()"> 
<form name="login" method="POST" action="">
<div ID="maintext" STYLE="position:absolute;left:50px;top:40px;font-family:Arial,Helvetica">
<h4>Checking JavaScript Support </h4>
<p>To provide an enhanced user interface, this Device uses JavaScript extensively.
<P>If this page is not quickly replaced, your Browser does NOT support JavaScript.
<P>Please enable JavaScript in your Browser, or use a different Browser. </p>

I thought it was because of the headers for what I see is not that, how do I miss this warning?

    
asked by ellipsys 03.08.2016 в 17:14
source

0 answers