mercredi 23 janvier 2019

You are not authorized to view this page. HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration

I am new to python Programming. I am learning website scrapping. Our office has a server for our employees only. I wanted to scrap it. But some ERROR happened and I am unable to get the HTML content. Here is the code--

import requests
from bs4 import BeautifulSoup
page= requests.get("http://xxxx.aspx")
soup=BeautifulSoup(page.content, 'html.parser')
print(soup)

it gives HTML content which after compilation gives: Photo.png




Aucun commentaire:

Enregistrer un commentaire