Batch acquisition of the century Jia Yuan member picture and WinHTTP asynchronous acquisition efficiency

Source: Internet
Author: User

Original source: http://www.cnblogs.com/Charltsing/p/winhttpasyn.html

Recently, I was asked if I can bypass the century good-luck member verification to collect pictures, I tested it, found that it is possible.

The efficiency of WinHTTP asynchronous acquisition is also tested. (Use WinHTTP in VBA to develop fast)

After testing, it takes about three minutes or less to retrieve 10,000 members in the event that the site is not busy.

Here's a brief look at how to do concurrent acquisition using WinHTTP:

1, in the class module to establish WinHTTP of various events, for processing error and response data. Establish a bool variable to indicate whether the instance is idle.

2. In the standard module, the URL is automatically generated according to the UID, and an index variable is established to indicate the ordinal number of the site URL that has been sent.

3. Create an array of WinHTTP instances in the standard module for concurrency. The number of recommendations should not exceed 1000, specifically related to network and Computer configuration.

4. Monitor the array of WinHTTP instances in the Do While loop, if there is a free set URL to start the request.

Specific WinHTTP class module in the event of the wording, please own Baidu.

Technical Exchange Please contact qq:564955427

**

Batch acquisition of the century Jia Yuan member picture and WinHTTP asynchronous acquisition efficiency

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.