I wish to download a buildings database from BREEAM(Building Research Establishment Environmental Assessment Methodology). It has 65 pages so I would like to write a code to download more efficiently.
I had the following code
import library
from bs4 import BeautifulSoup import requests
Request to website and download HTML contents
url='https://tools.breeam.com/projects/explore/buildings.jsp?sectionid=0&projectType=Offices&rating=&countryID=56&client=&description=&certBody=&certNo=&developer=&location=London&buildingName=&assessor=&subschemeid=0&Submit=Search' req=requests.get(url) content=req.text
But I kept receiving error message: ConnectionError: HTTPSConnectionPool(host='tools.breeam.com', port=443): Max retries exceeded with url: /projects/explore/buildings.jsp?sectionid=0&projectType=Offices&rating=&countryID=56&client=&description=&certBody=&certNo=&developer=&location=London&buildingName=&assessor=&subschemeid=0&Submit=Search (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000020523F02048>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
Any ideas?
Thanks.