Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML of pattern recognition inquiry
#1
Quote:; <div style="background-color:#ffffff" class="contents_view2" onclick="contentView(20582260, 'N', 'N', 2913210, '01', 'null','12','04');">
; <div class="text_area_no_img">
; <div class="contents_title"><div style="color:#316AC5;font-weight: bold; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; min-width:50px; max-width:90%; float:left; ">apple</div></div>
; <div class="contents_cate">
; <ul>
; <li class="cate">
;
; movie / 330 / sisiani
; </li>
; </ul>
; </div>
; </div>
; </div>

reseult:
number: 20582260
title: apple
info: movie / 330 / sisiani
Macro Macro9
Code:
Copy      Help
int MozillaFrame=win("" "Mozilla*WindowClass" "" 0x804)
Acc HtmName.Find(MozillaFrame "DIV" "" "" 0x3010 2)
str html
HtmName.WebPageProp(0 0 html)

ARRAY(str) l1 l2
int i1 i2

str pattern=
    <div class="contents_view2" onclick="contentView(21448573, 'N', 'N', 2913210, '01', 'null','12','05');" style="cursor:pointer;">
;;;;;;<div class="text_area_no_img">
;;;;;;;;<div class="contents_title"><div style="color:#EF7963;font-weight: bold; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; min-width:50px; max-width:90%; float:left; ">(.*)</div></div>
;;;;;;;;<div class="contents_cate">
;;;;;;;;;;<ul>
;;;;;;;;;;;;<li class="cate">
;;;;;;;;;;;;;;;(.*)
;;;;;;;;;;;;</li>
;;;;;;;;;;</ul>
;;;;;;;;</div>
;;;;;;</div>
;;;;</div>
if(0=findrx(html pattern 0 4 l1)) end "not found"
for i1 0 l1.len
,out l1[1 i1]

In HTML, I want to get only the information of the displayed portion in red.
Information of the red part is frequently changed. Can not be obtained the information, "not found " occurs.
What can get the information through the way?


Forum Jump:


Users browsing this thread: 1 Guest(s)