Skip to content

Comment on Ask HN: Review ting and win $25 Amazon Gift Certificateparent

Comments

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.

ok, I fixed the problem. It should work now.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.