Vbs xmldom obtains the QQ signature code for the first time

Source: Internet
Author: User

'/* =================================================== ==========================================
'* Using XMLDOM to analyze QQ signature documents
'* FileName QQ_QianMing.vbs
'* Author yongfa365
'* Version v2.0
'* Email yongfa365 [at] qq.com

'* MadeTime 20:55:25
'* LastModify 2008-02-22 20:55:25
'* ===================================================== ============================================= */

Set Doc = CreateObject ("Microsoft. XMLDOM ")
Doc. async = False
Doc. load ("http://e.cnc.qzone.qq.com/cgi-bin/cgi_emotion_indexcount.cgi? Uin = 64049027 ")
Set root = Doc.doc umentElement
Set node = root. childNodes. nextNode ()
Wscript. Echo "Total" & node. text & "signature information"

Set Doc = CreateObject ("Microsoft. XMLDOM ")
Doc. async = False
Doc. load ("http://e.cnc.qzone.qq.com/cgi-bin/cgi_emotion_indexlist.cgi? Uin = 64049027 & emotionarchive =-1 ")
Set root = Doc.doc umentElement
Wscript. Echo "the XML root node name is:" & root. nodeName
Set node = root. childNodes. nextNode ()

For nodei = 0 To node. childNodes. Length-1
Set NowNode = node. childNodes (nodei)
Msg = msg & vbCrLf & "id" & ":" & NowNode. Attributes. getNamedItem ("id"). text
'Msg = msg & vbCrLf & "id" & ":" & NowNode. getAttribute ("id ")
Msg = msg & vbCrLf & "title" & ":" & NowNode. selectSingleNode ("title"). text
Msg = msg & vbCrLf & "pubDate" & ":" & NowNode. selectSingleNode ("pubDate"). text
'Msg = msg & vbCrLf & NowNode. childNodes (0). nodeName & ":" & NowNode. childNodes (0). text
'Msg = msg & vbCrLf & NowNode. childNodes (1). nodeName & ":" & NowNode. childNodes (1). text
Next
Wscript. Echo msg

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.