asked on
https://abc.com/123
https://abc.com/456
https://abc.com/789
I want to go each URL and grab web title.ASKER
---------------------------------------------------------------------------
httperror_seek_wrapper Traceback (most recent call last)
<ipython-input-87-7bc310fc5cad> in <module>
6 for x in range(len(a)):
7 br = Browser()
----> 8 br.open(a[x])
9 print("Website title: ")
10 print(br.title())
~\Anaconda3\lib\site-packages\mechanize\_mechanize.py in open(self, url_or_request, data, timeout)
255 :return: A :class:`mechanize.Response` object
256 '''
--> 257 return self._mech_open(url_or_request, data, timeout=timeout)
258
259 def _mech_open(self,
~\Anaconda3\lib\site-packages\mechanize\_mechanize.py in _mech_open(self, url, data, update_history, visit, timeout)
311
312 if not success:
--> 313 raise response
314 return response
315
httperror_seek_wrapper: HTTP Error 403: b'request disallowed by robots.txt'
ASKER
Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in other languages. Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive set of standard libraries, including NumPy, SciPy, Django, PyQuery, and PyLibrary.
TRUSTED BY