This is the first time I'm trying to pick up some Python skills; please be kind to me :-)
While I am not completely unfamiliar with programming concepts (I used to work with PHP), switching to Python turned out to be somewhat difficult for me. I suppose this is mainly due to the fact that I am missing most, if not all, of the basic understanding of common "design patterns" (?) Etc.
Having said that, this is a problem. Part of my current project involves writing a simple scraper using Beautiful Soup. The data to be processed has a somewhat similar structure to that described below.
<table>
<tr>
<td class="date">2011-01-01</td>
</tr>
<tr class="item">
<td class="headline">Headline</td>
<td class="link"><a href="#">Link</a></td>
</tr>
<tr class="item">
<td class="headline">Headline</td>
<td class="link"><a href="#">Link</a></td>
</tr>
<tr>
<td class="date">2011-01-02</td>
</tr>
<tr class="item">
<td class="headline">Headline</td>
<td class="link"><a href="#">Link</a></td>
</tr>
<tr class="item">
<td class="headline">Headline</td>
<td class="link"><a href="#">Link</a></td>
</tr>
</table>
, , 1) (tr- > td class= "date" ), 2) tr: s (tr class= "item" → td class= "headline" tr class= "item" → td class= "link" ) 3) .
, , :
, crud: , , , : -)
. , , , - , , "" :-)
, , noobish.