Home > Back-end >  SDK elements on a page and element attributes, and formatted output to its software interface for id
SDK elements on a page and element attributes, and formatted output to its software interface for id

Time:10-11

Extraction of taobao commodity elements, for example, put all the pictures of goods, price, name, formatted output to the software,


For detailed ideas, better example source code,

CodePudding user response:

http://www.clevercomponents.com/

Don't explain

People think the best extraction web content control,

CodePudding user response:

Elements are generally two kinds of extraction methods of web page,
One is to use a regular expression analysis web page text,
The second is to use IHTMLDocument2 interface or other analysis page elements,

CodePudding user response:

The SDK in not on it

CodePudding user response:

N years ago made of similar material, enumerate all controls, IE to open the page properties conform to the content of the text box input, Settings, click the submit button, after the completion of a long time ago

CodePudding user response:

Reference: give you a similar code through the built-in CppWebBrowser controls to implement program, with CppWebBrowser before you use to open a web page, then add more similar to a button click event the following code


 the Variant Doc=CppWebBrowser1 - & gt; OleObject. OlePropertyGet (" Document ");//get the current HTML document object 
The Variant checkbox=Doc. OleFunction (" getElementById ", "checkbox");//source check box, are specified to operate the controls
If (((IDispatch *) checkbox)!=NULL) {
If (StrToBool (VarToStr (checkbox. OlePropertyGet (" Checked ")))==false) checkbox. OleFunction (" click ");
}

CodePudding user response:

The WEBBROWSER is MFC what's inside, not the SDK,


I do remember listening to a web page of the classmate say, the web can leave interface, through the interface can send something to the software,

Have a proficient in web pages and the SDK high play, talk about, can use this implementation?

CodePudding user response:

With regular expressions, really want to spend a lot of energy to write algorithms, hematemesis,

CodePudding user response:

! Why always comes to the actual method, no reply?

CodePudding user response:

I want to do most after a program to control the web game, you have no advice, thank you

CodePudding user response:

refer to the eighth floor ZHANG260324 response:
! Why always comes to the actual method, no reply?


No one have these examples in hand at any time, generally not too complicated problem, when I am not too busy will personally help netizens coding and debugging, but recently too busy, you need to write a piece of code still need to spend a little time, so to help you write,
  • Related