Query _ retail family, _ retail family

Source: Internet
Author: User

Query _ retail family, _ retail family

Sub query _ retail family () Cells. clear On Error Resume Next Set hf = CreateObject ("htmlfile") With CreateObject ("WinHttp. winHttpRequest.5.1 ") For p = 1 To 15. open "GET", "http://www.shdjt.com/gpdm.asp? Gpdm = 002463 & page = "& p, False. setRequestHeader "Connection", "keep-alive ". setRequestHeader "Accept-Language", "zh-cn ". send q = BytesToBstr (. responseBody, "GB2312") '. Therefore, use Adodb. stream object, from. responseBody returns the string hf. body. innerhtml = q n = Range ("a65536 "). end (xlUp ). row Set r = hf. getElementById ("senfe "). rows For I = 2 To r. length-2 For j = 0 To r (I ). cells. length-1 Cells (I-1 + n, j + 1) = r (I ). cells (j ). innerText Next j Next I Next p End WithEnd SubFunction BytesToBstr (strBody, CodeBase) 'Use Adodb. stream object extract string Dim objStream Set objStream = CreateObject ("Adodb. stream ") With objStream. type = 1' binary. mode = 3' read/write. open. write strBody 'binary array written into Adodb. inside the Stream object. position = 0' Position start with 0. type = 2' string. charset = codebase' data encoding format BytesToBstr =. readtext' to obtain the string End With objStream. close Set objStream = NothingEnd Function 'note that in the first line of code, CodeBase = "GB2312" indicates that the obtained webpage content is in GB2312 encoding format. If garbled characters appear, so replace it with Coding $ = "UTF-8", 'gb2312/BIG5/UTF-8


How can we find stocks with larger inflection points in the retail family?

Let's look at the market, policy trends, and enterprise performance! Every stock has a major shareholder. As long as you grasp the movements of the shareholders, you have only the power to collect fishermen! O (∩) o haha!
 
Why can't the retail family go up today? Blocked?

No. I just returned it.

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.