<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Parsing HTML table in Python with BeautifulSoup</title>
	<atom:link href="http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/feed/" rel="self" type="application/rss+xml" />
	<link>http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/</link>
	<description>vinod&#039;s blog</description>
	<lastBuildDate>Wed, 20 Apr 2011 03:52:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: segfault</title>
		<link>http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/#comment-89</link>
		<dc:creator>segfault</dc:creator>
		<pubDate>Mon, 11 Oct 2010 11:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=950#comment-89</guid>
		<description>@Maclaud

Check if &#039;text&#039; is None first. If &#039;td&#039; is empty td.find() will return None.

&lt;pre lang=&quot;pyhon&quot;&gt;
text = td.find(text=True)
if text != None:
    ....
    ....
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Maclaud</p>
<p>Check if &#8216;text&#8217; is None first. If &#8216;td&#8217; is empty td.find() will return None.</p>

<div class="wp_syntax"><div class="code"><pre class="pyhon" style="font-family:monospace;">text = td.find(text=True)
if text != None:
    ....
    ....</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Maclaud</title>
		<link>http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/#comment-88</link>
		<dc:creator>Maclaud</dc:creator>
		<pubDate>Mon, 11 Oct 2010 10:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://segfault.in/?p=950#comment-88</guid>
		<description>Thanx a lot for this demonstration, it was very useful for me, still i need to know how to deal with empty td&#039;s ex
&lt;code&gt;&lt;/code&gt;
which return &lt;code&gt; text = &#039;&#039;.join(td.find(text=True))
TypeError&lt;/code&gt;
thanks again
Claudio</description>
		<content:encoded><![CDATA[<p>Thanx a lot for this demonstration, it was very useful for me, still i need to know how to deal with empty td&#8217;s ex<br />
<code></code><br />
which return <code> text = ''.join(td.find(text=True))<br />
TypeError</code><br />
thanks again<br />
Claudio</p>
]]></content:encoded>
	</item>
</channel>
</rss>

