Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Общие вопросы по .NET и C# > Поправьте код для парсинга


Автор: CyberTramp 31.8.2012, 16:07
HTML
Код
 class="FacebookBM"> <a href="/r.asp?http://www.facebook.com/sharer.php
 ?u=http://cyprus.angloinfo.com/forum/topic.asp?topic_id=140297&amp;t=Job 
 Opportunity - Limassol" target="_blank">Share on Facebook</a></span></div>
 <div style="margin-top:5px"><span class="TwitterBM"> <a href="/r.asp?
 http://twitter.com/intent/tweet?text=Job+Opportunity+%2D+Limassol : &
 url=http://angloinfo.com/3nnuq9" target="_blank">Tweet this!</a></span>
 </div></div></td></tr><tr><td colspan="2"><DIV class="ForumMsg"><SPAN 
 style="TEXT-DECORATION: underline"><STRONG>TELEMARKETER – RUSSIAN / ENGLISH SPEAKING</STRONG></SPAN>

<P><STRONG></STRONG> </P>

<P><STRONG>Location – Limassol Office, Cyprus</STRONG></P>

<P><STRONG>Temporary Position</STRONG></P>

<P>A successful, established Corporate Service provider has a telemarketer vacancy 
in their Limassol office. The successful candidate will be responsible for completing 
interaction by telephone with external parties – outbound calling to prospective clients
. Reporting to Sales Manager.</P>

<P><STRONG>Job Description:</STRONG></P>

<UL>

<LI>Make outbound welcome sales calls 

<LI>Follow up on initial contacts 


Делаю так
Код
     string site_adress = "http://cyprus.angloinfo.com/forum/topic.asp?topic_id=140297";
  
        var request = WebRequest.Create(site_adress);
        using (var responses = request.GetResponse())
        {
            using (var streams = responses.GetResponseStream())
            using (var readers = new StreamReader(streams))
            {
                string html = readers.ReadToEnd();

                try
                {
                    var UpTlt = new Regex(@"<DIV\s*class=[^>]*><SPAN\s*style=[^>]*><STRONG>(?<upd>[^*]+)</STRONG></SPAN>\s*<P><STRONG></STRONG>");
                string tetl = UpTlt.Match(html).Groups["upd"].Value;
                Title_L_top.Text += tetl;
                }
                catch (Exception)
                {
                    
                    return;
                }


Необходимо выташить TELEMARKETER – RUSSIAN / ENGLISH SPEAKING

.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)