Open GoogleCodeExporter opened 8 years ago
I have a html file that below code is part of it <table cellpadding="2" border="0" cellspacing="2" dir="rtl"> <tbody><tr> <td class="tb">نام</td> <td>...</td> <td class="tb">نقش</td> </tr> <tr> <td valign="top" nowrap=""> ۱ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112040054" class="Titr"> حسين محجوب </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۲ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138111280035" class="Titr"> محمود پاك نيت </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۳ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112190356" class="Titr"> پريوش نظريه </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۴ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112040198" class="Titr"> محمود جعفري </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۵ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112040229" class="Titr"> زهرا سعيدي </a> </td> <td nowrap="">....</td> <td class="Tb">هاجر</td> </tr> <tr><td valign="top" nowrap=""> ۶ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112200164" class="Titr"> باقر صحرارودي </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۷ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138111280008" class="Titr"> جعفر دهقان </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۸ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112200097" class="Titr"> مريم بوباني </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۹ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112200809" class="Titr"> علي يعقوب زاده </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۱۰ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138201180033" class="Titr"> امير قهرمان زاده </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۱۱ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112170301" class="Titr"> جهانگير الماسي </a> </td> <td nowrap="">....</td> <td class="Tb"></td> </tr> <tr><td valign="top" nowrap=""> ۱۲ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138111290010" class="Titr"> امان اله رحيمي </a> </td> <td nowrap="">....</td> <td class="Tb">چراغعلي (روستائي ياغي)</td> </tr> <tr><td valign="top" nowrap=""> ۱۳ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138112150058" class="Titr"> محمد حاج حسيني </a> </td> <td nowrap="">....</td> <td class="Tb">پيشكار امير مفخم</td> </tr> <tr><td valign="top" nowrap=""> ۱۴ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138203070000" class="Titr"> شيرين صمدي </a> </td> <td nowrap="">....</td> <td class="Tb">زن زرنگ</td> </tr> <tr><td valign="top" nowrap=""> ۱۵ - <a href="http://www.sourehcinema.com/People/People.aspx?Id=138202110108" class="Titr"> مهوش صبركن </a> </td> <td nowrap="">....</td> <td class="Tb">همسر مفخم</td> </tr> <tr> <td></td> <td></td> <td colspan="3">(<a href="http://www.sourehcinema.com/Title/FullCast_Crew.aspx?Id=138201170001" style="FONT-SIZE: 70%; FONT-FAMILY: Tahoma, 'Times New Roman'; TEXT-DECORATION: none">بيشتر</a>)</td> </tr> </tbody></table> I try to get any tr content, I try this code $html('table[cellspacing="2"] tr') but it only return me only first 2 element, (0,1) !!!! where is the problem?
Original issue reported on code.google.com by yusef.mo...@gmail.com on 28 Dec 2014 at 9:28
yusef.mo...@gmail.com
Original issue reported on code.google.com by
yusef.mo...@gmail.com
on 28 Dec 2014 at 9:28