這是從那裏我試圖提取子表從表中的iMacros
我試圖提取數據 我只是想從一個表中提取子表下建築詳細信息類別的webpage
TAG POS=1 TYPE=H2 ATTR=TXT:Building<SP>Details
TAG POS=R1 TYPE=TABLE ATTR=TXT:* EXTRACT=HTM
SET txt1 {{!EXTRACT}}
SET count_txt EVAL(("var n=\"{{txt1}}\";var a=n.match(/<table class=\"table table-bordered table-responsive table-striped\">/g) || []).length;a;")
PROMPT {{count_txt}}
在這段代碼中,我第一次計數文本'<table class=\"table table-bordered table-responsive table-striped\"'
的發生,並在此基礎上努力潑了HTM,然後提取數據,但是這是給我的錯誤
MacroSyntaxError: wrong format of SET command, line 4 (Error code: -910)
我試圖讓這樣的事情
Sr.No. Project_Name Name Number of Basement's Number of Plinth Number of Podium's Number_of_Slab_of_Super_Structure Number_of_Stilts Number_of Open_Parking Number_of_Closed_Parking Sr.No. Apartment_Type Carpet_Area_(in Sqmts) Number_of_Apartment Number_of_Booked_Apartment
1 SERENE CITY SERENE CITY A-01/A-02 0 1 0 2 0 0 0 1 VILLA 2BHK 234.3 2 0
2 SERENE CITY SERENE CITY A-03/A-04 0 1 0 2 0 0 0 1 VILLA 2BHK 234.3 2 0
截至本記錄有... 任何幫助將非常感激。
感謝
@deepesh這個答案對您有幫助嗎? –