Home > Software engineering > VBA to realize the automatic extraction baidu encyclopedia the content of the movie
VBA to realize the automatic extraction baidu encyclopedia the content of the movie
Time:11-30
Website is: https://baike.baidu.com/item/Pacific rim: thunder again/22038038? Fr=Aladdin Need to extract the inside of the content such as "Chinese name", automatically fill in on the homemade Excel file (as attachment), if there is no information is replaced with "/"
The innerText can find a Chinese name, but just don't know how to remove the next node of dt dd the innerText, has tried to children or siblings, is to get the dd the innerText "Pacific rim: thunder again".
The Pacific rim: thunder again
CodePudding user response:
Don't search for nodes, direct search character interception
Newline & lt; Dd & gt; Line breaks Newline & lt;/dd> Between the two rows of signature is the content of the
CodePudding user response:
Just started learning VBA, can write the code for me? thx