Sep-18-2018, 02:23 AM
I am try to use requests.get to download a file named list.csv. However, after I downloaded it. I found I got a wrong result. I got a result with such information.
What's happened?
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
var url = '/account/login/';
if (window.location.href.indexOf('service=') != -1) {
url += '?next=' + encodeURIComponent(window.location.href)
}
window.location.href = url;
</script>
</head>
<body>
</body>
</html>
What's happened?
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
var url = '/account/login/';
if (window.location.href.indexOf('service=') != -1) {
url += '?next=' + encodeURIComponent(window.location.href)
}
window.location.href = url;
</script>
</head>
<body>
</body>
</html>