3 ms·
Thanks for trying. The title of the page you are submitting must have returns before and after it. I try to catch that error with "strip" but for some reason yo
by zeynel1 16y ago
Thanks for trying. The title of the page you are submitting must have returns before and after it. I try to catch that error with "strip" but for some reason yours is not caught:
soup = BeautifulSoup.BeautifulSoup(urllib.urlopen(url))
title = str(soup.html.head.title.string).lstrip("\r\n").rstrip("\r\n")
Try another url.
- deleted 16y ago[deleted]
- zeynel1 16y agook, I fixed the problem. It should work now.