Как парсить с semrush слова?

 
0
 
.NET
ava
ywitodenasuby | 26.01.2013, 11:05
Помогите разобраться. Захожу на страницу http://www.semrush.com/info/data и хочу парсить слова из раздела "Phrase match report". В исходнике страницы они спрятаны. Пытался найти скрипт который нужно дергать, но не нашел. Помогите плиз?
Kommentare (6)
ava
Certain | 26.01.2013, 18:54 #
Они не спрятаны


<tbody>                                                                        
                <tr class="sem-widget-table-odd">
                    <td class="sem-widget-table-first-col"><a href="/info/world%20bank (keyword)">world bank</a></td>
                    <td align="right">60,500</td>
                                        <td align="right">10.79</td>
                                        <td><a class="serp-link" target="_blank" href="/info/world%20bank (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-even">
                    <td class="sem-widget-table-first-col"><a href="/info/public (keyword)">public</a></td>
                    <td align="right">18,100</td>
                                        <td align="right">0.77</td>
                                        <td><a class="serp-link" target="_blank" href="/info/public (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-odd">
                    <td class="sem-widget-table-first-col"><a href="/info/public%20data (keyword)">public data</a></td>
                    <td align="right">12,100</td>
                                        <td align="right">0.54</td>
                                        <td><a class="serp-link" target="_blank" href="/info/public%20data (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-even">
                    <td class="sem-widget-table-first-col"><a href="/info/gov (keyword)">gov</a></td>
                    <td align="right">9,900</td>
                                        <td align="right">1.88</td>
                                        <td><a class="serp-link" target="_blank" href="/info/gov (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-odd">
                    <td class="sem-widget-table-first-col"><a href="/info/world%20bank%20data (keyword)">world bank data</a></td>
                    <td align="right">4,400</td>
                                        <td align="right">0.10</td>
                                        <td><a class="serp-link" target="_blank" href="/info/world%20bank%20data (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-even">
                    <td class="sem-widget-table-first-col"><a href="/info/jquery%20data (keyword)">jquery data</a></td>
                    <td align="right">4,400</td>
                                        <td align="right">0.10</td>
                                        <td><a class="serp-link" target="_blank" href="/info/jquery%20data (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-odd">
                    <td class="sem-widget-table-first-col"><a href="/info/the%20world%20bank (keyword)">the world bank</a></td>
                    <td align="right">4,400</td>
                                        <td align="right">6.01</td>
                                        <td><a class="serp-link" target="_blank" href="/info/the%20world%20bank (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-even">
                    <td class="sem-widget-table-first-col"><a href="/info/publicdata.com (keyword)">publicdata.com</a></td>
                    <td align="right">4,400</td>
                                        <td align="right">1.55</td>
                                        <td><a class="serp-link" target="_blank" href="/info/publicdata.com (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-odd">
                    <td class="sem-widget-table-first-col"><a href="/info/publicdata (keyword)">publicdata</a></td>
                    <td align="right">4,400</td>
                                        <td align="right">1.02</td>
                                        <td><a class="serp-link" target="_blank" href="/info/publicdata (source)">&nbsp;</a></td>
                </tr>
                                                                
                <tr class="sem-widget-table-even">
                    <td class="sem-widget-table-first-col"><a href="/info/data.com (keyword)">data.com</a></td>
                    <td align="right">2,900</td>
                                        <td align="right">0.83</td>
                                        <td><a class="serp-link" target="_blank" href="/info/data.com (source)">&nbsp;</a></td>
                </tr>
                                                                                            </tbody>
ava
ywitodenasuby | 26.01.2013, 21:27 #
Это понятно, а как мне программно получить такой кусок кода?
ava
Certain | 26.01.2013, 22:34 #
Получаем HTML разметку страницы

System.Net.WebClient webClient = new System.Net.WebClient();
string HTML = webClient.DownloadString("http://www.semrush.com/info/data");


Парсим результат string.Split или регулярными выражениями
ava
ywitodenasuby | 26.01.2013, 23:15 #
System.Net.WebClient webClient = new System.Net.WebClient();
string HTML = webClient.DownloadString("http://www.semrush.com/info/data");

В переменной HTML будут ключевые слова или не будут или хз?
ava
Certain | 26.01.2013, 23:24 #
в HTML будет ВЕСЬ код ВСЕЙ страницы, который и нужно будет разбить по определённым параметра, чтобы получить нужный Вам блок кода
ava
ywitodenasuby | 26.01.2013, 23:32 #
Спасибо за помощь, ето то что нужно! Все работает!  smile 
Registrieren Sie sich oder melden Sie sich an, um schreiben zu können.
Unternehmen des Tages
Вы также можете добавить свою фирму в каталог IT-фирм, и публиковать статьи, новости, вакансии и другую информацию от имени фирмы.
Подробнее
Mitwirkende
advanced
Absenden