Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:UsersEun Hae LeeAppDataLocalProgramsPythonPython35-32rent.py", line 5, in <module>
- sauce = urllib.request.urlopen("http://www.equityapartments.com/washington-dc/georgetown/2400-m-apartments##unit-availability-tile").read()
- File "C:UsersEun Hae LeeAppDataLocalProgramsPythonPython35-32liburllibrequest.py", line 162, in urlopen
- return opener.open(url, data, timeout)
- File "C:UsersEun Hae LeeAppDataLocalProgramsPythonPython35-32liburllibrequest.py", line 471, in open
- response = meth(req, response)
- File "C:UsersEun Hae LeeAppDataLocalProgramsPythonPython35-32liburllibrequest.py", line 581, in http_response
- 'http', request, response, code, msg, hdrs)
- File "C:UsersEun Hae LeeAppDataLocalProgramsPythonPython35-32liburllibrequest.py", line 509, in error
- return self._call_chain(*args)
- File "C:UsersEun Hae LeeAppDataLocalProgramsPythonPython35-32liburllibrequest.py", line 443, in _call_chain
- result = func(*args)
- File "C:UsersEun Hae LeeAppDataLocalProgramsPythonPython35-32liburllibrequest.py", line 589, in http_error_default
- raise HTTPError(req.full_url, code, msg, hdrs, fp)
- urllib.error.HTTPError: HTTP Error 400: Bad Request
- import urllib.request
- import bs4 as bs
- sauce = urllib.request.urlopen("http://www.equityapartments.com/washington-dc/georgetown/2400-m-apartments##unit-availability-tile").read()
- soup = bs.beautifulsoup(sauce, 'html.parser')
- print(soup)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement