Lafaso.com Data Acquisition

Source: Internet
Author: User
Private Void Button31_click ( Object Sender, eventargs E)
{
Gethtmlnodefromlink2 ( " Http://www.lafaso.com/clothing/ " , " UTF-8 " ); // Http://www.vancl.com/channel/women.html Children
Htmlagilitypack. htmlnodecollection node = htmlnodes. selectnodes ( " // Div [@ class = 'clothing _ new clothing_moban ']/textarea/ul/Li " ); // " // Div [@ class = 'slidebannera homeslidead1 ']"

Strlink = New String [Node. Count];
Strimgsrc = New String [Node. Count];
Strtitle = New String [Node. Count];
Strmarketprice = New String [Node. Count];
Strcurrentprice = New String [Node. Count];

Int I = 0 ;
Foreach (Htmlnode In Node)
{
Try
{
Strlink [I] = htmlnode. childnodes [ 0 ]. Attributes [ " Href " ]. Value;
Strimgsrc [I] = htmlnode. childnodes [ 0 ]. Childnodes [ 0 ]. Attributes [ " SRC " ]. Value; // = NULL? Htmlnode. childnodes [0]. childnodes [0]. attributes ["original"]. value: htmlnode. childnodes [0]. childnodes [0]. attributes ["src"]. value ;;
Strtitle [I] = htmlnode. childnodes [ 1 ]. Childnodes [ 0 ]. Childnodes [ 0 ]. Innerhtml. Trim ();
// Strmarketprice [I] = htmlnode. childnodes [3]. childnodes [3]. innerhtml. trim (). replace ("$ ",""). replace ("¥ ","");
Strcurrentprice [I ++] = htmlnode. childnodes [ 2 ]. Childnodes [ 0 ]. Childnodes [ 0 ]. Innerhtml. Trim (). Replace ( " Lebee price: ¥ " , "" );
}
Catch
{}
}
}

Private Void Button32_click ( Object Sender, eventargs E)
{
Gethtmlnodefromlink2 ( " Http://www.lafaso.com/clothing/ " ," UTF-8 " ); // Http://www.vancl.com/channel/women.html Children
Htmlagilitypack. htmlnodecollection node = htmlnodes. selectnodes ( " // Div [@ class = 'clothing _ new clothing_shirt clothing_kz clothing_moban ']/textarea/ul/Li " ); // " // Div [@ class = 'slidebannera homeslidead1 ']"
// Clothing_new clothing_shirt clothing_moban
Strlink = New String [Node. Count];
Strimgsrc = New String [Node. Count];
Strtitle =New String [Node. Count];
Strmarketprice = New String [Node. Count];
Strcurrentprice = New String [Node. Count];

Int I = 0 ;
Foreach (Htmlnode In Node)
{
Try
{
Strlink [I] = htmlnode. childnodes [ 0 ]. Attributes [" Href " ]. Value;
Strimgsrc [I] = htmlnode. childnodes [ 0 ]. Childnodes [ 0 ]. Attributes [ " SRC " ]. Value; // = NULL? Htmlnode. childnodes [0]. childnodes [0]. attributes ["original"]. value: htmlnode. childnodes [0]. childnodes [0]. attributes ["src"]. value ;;
Strtitle [I] = htmlnode. childnodes [ 1 ]. Childnodes [ 0 ]. Childnodes [ 0 ]. Innerhtml. Trim ();
// Strmarketprice [I] = htmlnode. childnodes [3]. childnodes [3]. innerhtml. trim (). replace ("$ ",""). replace ("¥ ","");
Strcurrentprice [I ++] = htmlnode. childnodes [ 2 ]. Childnodes [ 0 ]. Childnodes [ 0 ]. Innerhtml. Trim (). Replace ( " Lebee price: ¥ " , "" );
}
Catch
{}
}
}

Private VoidButton33_click (ObjectSender, eventargs E)
{

Gethtmlnodefromlink2 ( " Http://www.lafaso.com/clothing/ " , " UTF-8 " ); // Http://www.vancl.com/channel/women.html Children
Htmlagilitypack. htmlnodecollection node = htmlnodes. selectnodes ( " // Div [@ class = 'clothing _ new clothing_shirt clothing_moban ']/textarea/ul/Li " ); // " // Div [@ class = 'slidebannera homeslidead1 ']"
//
Strlink = New String [Node. Count];
Strimgsrc = New String [Node. Count];
Strtitle = New String [Node. Count];
Strmarketprice = New String [Node. Count];
Strcurrentprice = New String [Node. Count];

Int I = 0 ;
Foreach (Htmlnode In Node)
{
Try
{
Strlink [I] = htmlnode. childnodes [ 0 ]. Attributes [ " Href " ]. Value;
Strimgsrc [I] = htmlnode. childnodes [ 0 ]. Childnodes [ 0 ]. Attributes [ " SRC " ]. Value; // = NULL? Htmlnode. childnodes [0]. childnodes [0]. attributes ["original"]. value: htmlnode. childnodes [0]. childnodes [0]. attributes ["src"]. value ;;
Strtitle [I] = htmlnode. childnodes [ 1 ]. Childnodes [ 0 ]. Childnodes [ 0 ]. Innerhtml. Trim ();
// Strmarketprice [I] = htmlnode. childnodes [3]. childnodes [3]. innerhtml. trim (). replace ("$ ",""). replace ("¥ ","");
Strcurrentprice [I ++] = htmlnode. childnodes [ 2 ]. Childnodes [ 0 ]. Childnodes [ 0 ]. Innerhtml. Trim (). Replace ( " Lebee price: ¥ " , "" );
}
Catch
{}
}
}

Private VoidButton34_click (ObjectSender, eventargs E)
{

Gethtmlnodefromlink2 ( " Http://www.lafaso.com/clothing/ " , " UTF-8 " ); // Http://www.vancl.com/channel/women.html Children
Htmlagilitypack. htmlnodecollection node = htmlnodes. selectnodes ( " // Div [@ class = 'clothing _ new clothing_shirt clothing_moban ']/textarea/P " ); // " // Div [@ class = 'slidebannera homeslidead1 ']"
//
Strlink = New String [Node. Count];
Strimgsrc = New String [Node. Count];
Strtitle = New String [Node. Count];
Strmarketprice = New String [Node. Count];
Strcurrentprice = New String [Node. Count];

Int I = 0 ;
Foreach (Htmlnode In Node)
{
Try
{
Strlink [I] = htmlnode. childnodes [ 0 ]. Attributes [ " Href " ]. Value;
Strimgsrc [I ++] = htmlnode. childnodes [ 0 ]. Childnodes [ 0 ]. Attributes [ " SRC " ]. Value; // = NULL? Htmlnode. childnodes [0]. childnodes [0]. attributes ["original"]. value: htmlnode. childnodes [0]. childnodes [0]. attributes ["src"]. value ;;
// Strtitle [I] = htmlnode. childnodes [1]. childnodes [0]. childnodes [0]. innerhtml. Trim ();
// Strmarketprice [I] = htmlnode. childnodes [3]. childnodes [3]. innerhtml. trim (). replace ("$ ",""). replace ("¥ ","");
// Strcurrentprice [I] = htmlnode. childnodes [2]. childnodes [0]. childnodes [0]. innerhtml. trim (). replace ("lebee price: ¥ ","");
}
Catch
{}
}
}

Private VoidButton35_click (ObjectSender, eventargs E)
{

Gethtmlnodefromlink2 (" Http://www.lafaso.com/clothing/ " , " UTF-8 " ); // Http://www.vancl.com/channel/women.html Children
Htmlagilitypack. htmlnodecollection node = htmlnodes. selectnodes ( " // Div [@ class = 'clothing _ new clothing_shirt clothing_kz clothing_moban ']/textarea/P " ); // " // Div [@ class = 'slidebannera homeslidead1 ']"
//
Strlink = New String [Node. Count];
Strimgsrc = New String [Node. Count];
Strtitle = New String [Node. Count];
Strmarketprice = New String [Node. Count];
Strcurrentprice = New String [Node. Count];

Int I = 0 ;
Foreach (Htmlnode In Node)
{
Try
{
Strlink [I] = htmlnode. childnodes [0 ]. Attributes [ " Href " ]. Value;
Strimgsrc [I ++] = htmlnode. childnodes [ 0 ]. Childnodes [ 0 ]. Attributes [ " SRC " ]. Value; // = NULL? Htmlnode. childnodes [0]. childnodes [0]. attributes ["original"]. value: htmlnode. childnodes [0]. childnodes [0]. attributes ["src"]. value ;;
// Strtitle [I] = htmlnode. childnodes [1]. childnodes [0]. childnodes [0]. innerhtml. Trim ();
// Strmarketprice [I] = htmlnode. childnodes [3]. childnodes [3]. innerhtml. trim (). replace ("$ ",""). replace ("¥ ","");
// Strcurrentprice [I] = htmlnode. childnodes [2]. childnodes [0]. childnodes [0]. innerhtml. trim (). replace ("lebee price: ¥ ","");
}
Catch
{}
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.