Yes, it shows as empty string. But I learned about Scrapy and now I am
studying the tutorial. I like it better than BeautifulSoup. For
beginners it is better, I think.
On Nov 18, 11:50 am, Peter Pearson wrote:
> On Tue, 17 Nov 2009 14:38:55 -0800 (PST), Zeynel wrote:
>
> [snip]
>
> from Bea
On Tue, 17 Nov 2009 14:38:55 -0800 (PST), Zeynel wrote:
[snip]
from BeautifulSoup import BeautifulSoup
>
soup = BeautifulSoup (file("test.html").read())
title = soup.find('title')
titleString = title.string
open('extract.text', 'w').write(titleString)
>
> This runs without
On Tue, Nov 17, 2009 at 3:38 PM, Zeynel wrote:
> Hello,
>
> Please help with this code suggested in the beautifulsoup group
>
> http://groups.google.com/group/beautifulsoup/browse_frm/thread/d288555c6992ceaa
>
> >>> from BeautifulSoup import BeautifulSoup
>
> >>> soup = BeautifulSoup (file("test.
Hello,
Please help with this code suggested in the beautifulsoup group
http://groups.google.com/group/beautifulsoup/browse_frm/thread/d288555c6992ceaa
>>> from BeautifulSoup import BeautifulSoup
>>> soup = BeautifulSoup (file("test.html").read())
>>> title = soup.find('title')
>>> titleString =