2015 11 Holiday Notes (i) LWP learning record

Source: Internet
Author: User

Experimental Purpose:

1, access to Sohu Web page link information

--Script content

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/E4/wKioL1YJiw6zEb0cAAFQEN770fA937.jpg "title=" 2015-09-29_024556.png "alt=" Wkiol1yjiw6zeb0caafqen770fa937.jpg "/>

--token structure

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/E7/wKiom1YJiiuRiI31AADdmCPfzYY880.jpg "title=" 2015-09-29_024118.png "alt=" Wkiom1yjiiurii31aaddmcpfzyy880.jpg "/>

--Results Demo

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/E7/wKiom1YJi4jT420ZAAXypxuZ-Lg553.jpg "title=" 2015-09-29_024738.png "alt=" Wkiom1yji4jt420zaaxypxuz-lg553.jpg "/>

2, download all the picture information of the website page

Use Binmode to load handles, preserving binary information

--Code:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/E4/wKioL1YJj_3BlN93AAHMZyTyr8k536.jpg "title=" 2015-09-29_030715.png "alt=" Wkiol1yjj_3bln93aahmzytyr8k536.jpg "/>

--Results show

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/E7/wKiom1YJkDuwlOR7AALz-TgJDmE461.jpg "title=" 2015-09-29_030810.png "alt=" Wkiom1yjkduwlor7aalz-tgjdme461.jpg "/>

3. Get all available link information on Sohu website

--token structure Information

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/E4/wKioL1YJkOSz8owhAAEY4eX2BhU945.jpg "title=" 2015-09-29_031043.png "alt=" Wkiol1yjkosz8owhaaey4ex2bhu945.jpg "/>

--Source code:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/E4/wKioL1YJknnD_p46AAGXSUGBXoA825.jpg "title=" 2015-09-29_031752.png "alt=" Wkiol1yjknnd_p46aagxsugbxoa825.jpg "/>

-Results Demo:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/E7/wKiom1YJkrOy7fkHAAQFDSn_ps8485.jpg "title=" 2015-09-29_031858.png "alt=" Wkiom1yjkroy7fkhaaqfdsn_ps8485.jpg "/>

4. Access to each link to get the link information within each link page


--Code:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/E7/wKiom1YJmLewbjKUAAL79QiofCs908.jpg "title=" 2015-09-29_034427.png "alt=" Wkiom1yjmlewbjkuaal79qiofcs908.jpg "/>

-Results Demo:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/E4/wKioL1YJmPnB1MGcAAI6ivdyKWY282.jpg "title=" 2015-09-29_034533.png "alt=" Wkiol1yjmpnb1mgcaai6ivdykwy282.jpg "/>

This article is from the "Strive for Excellence" blog, please be sure to keep this source http://tiger506.blog.51cto.com/318536/1698988

2015 11 Holiday Notes (i) LWP learning record

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.