NEWS
Div class auslesen / parsen
-
@arteck der Parser Adapter arbeitet mit dem Quelltext
Div classen stehen nicht im Quelltext -
wenn du den quelltext der seite hier postest, dann kann man dir helfen.
seite aufrufen, dann rechte maustaste und bspw bei chrome/firefox/edge "seitenquelltext anzeigen" auswählen. bitte diesen in codetags (Knopf </>) hier einfügen
falls man sich bei dieser seite nicht anmelden muss bzw. nur basic authentification hat,
kann der parser adapter verwendet werden.
dazu muss man aber einen regex-ausdruck definieren, der für die meisten etwas kompliziert ist. -
@ceel sagte in Div class auslesen / parsen:
@arteck der Parser Adapter arbeitet mit dem Quelltext
Div classen stehen nicht im Quelltextdie klassen stehen definitiv im html-text.
was unter umständen nicht drin steht, wie die klassen mit css-anweisungen ausgeprägt werden. aber auch die kann man innerhalb style-tags im html integrieren.
da er aber die klassen bei den html-tags meint ist das irrelevant -
@oliverio
Das ist der Quelltext
Da ist kein "<div class="InkArea InkMaz Lv050">" zu finden<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge" > <link rel="stylesheet" type="text/css" href="rui/CSS/common.css?ver=2.030-1801"> <link rel="stylesheet" type="text/css" href="rui/CSS/other.css?ver=2.030-1801"> <style type="text/css"></style> <title></title> <script src="LANG/messID.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script src="JS_MDL/model.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script src="rui/JS/utility.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script src="rui/JS_TBL/table_error.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script src="rui/JS/event.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script src="rui/JS/framework.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script src="rui/JS/view.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script src="rui/JS/top.js?ver=2.030-1801" type="text/javascript" charset="UTF-8"></script> <script language="javascript"></script> </head> <body onSelectStart="return false;"> <div class="UserView Lcd_large" id="userviewArea"> <div class="ReturnAppBar" id="returnAppBar"> <a class="LinkArea" href="#" id="returnApp"> <div class="Text" id="returnAppText">12345</div> </a> </div> <div class="HorizontalContainer" id="TopMenu"> <div class="MenuPage"> <div class="ContentRelative"> <div class="dummy" id="replaceTop"></div> </div> </div> <div class="ContentPage"> <div class="h10Container" id="h10Container"> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack1"><div class="dummy" id="replaceDebug1"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack2"><div class="dummy" id="replaceDebug2"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack3"><div class="dummy" id="replaceDebug3"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack4"><div class="dummy" id="replaceDebug4"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack5"><div class="dummy" id="replaceDebug5"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack6"><div class="dummy" id="replaceDebug6"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack7"><div class="dummy" id="replaceDebug7"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack8"><div class="dummy" id="replaceDebug8"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack9"><div class="dummy" id="replaceDebug9"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack10"><div class="dummy" id="replaceDebug10"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack11"><div class="dummy" id="replaceDebug11"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack12"><div class="dummy" id="replaceDebug12"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack13"><div class="dummy" id="replaceDebug13"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack14"><div class="dummy" id="replaceDebug14"></div></div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack15"><div class="dummy" id="replaceDebug15"></div></div> </form> </div> </div> </div> </div> <div class="Sample" id="SampleArea"> <div class="PRINF" id="samplePRINF"> <div class="Title"> <div class="Text">12345</div> <div class="EventTarget" id="EVT_PRINF_BBTN"> <div class="BwdBtn"> <div class="Text">12345</div> </div> </div> </div> <div class="TitleEnd"></div> <div class="EventTarget" id="EVT_PRINF_UPDW"> <div class="ContentArea" id="prinf_content_class"> <div class="ErrMsgArea" id="PrintInfo_MsgArea"> <div class="Text" id="PrintInfo_MsgText">12345</div> <div class="LinkButtonArea Err"> <div class="LinkButton" id="lnkbtn_Detail">12345</div> </div> </div> <div class="InkLevel"> <div class="Text">12345</div> </div> <div class="InkInfo"> <div class="InkAreaLine" id="ink_area_line1"> <div class="InkPattern" id="inktank0"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank1"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank2"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank3"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank4"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank5"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> </div> <div class="InkAreaLine" id="ink_area_line2"> <div class="InkPattern" id="inktank6"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank7"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank8"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank9"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank10"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> <div class="InkPattern" id="inktank11"> <div class="InkMess"></div> <div class="InkArea"><div class="InkBar"></div></div> </div> </div> </div> <div class="LinkButtonArea" id="InkLink"> <a class="LinkButton" id="lnkbtn_InkModel" target="_blank">12345</a><a class="LinkButton" id="lnkbtn_BuyInk" target="_blank">12345</a> </div> <div class="InfoArea" id="infoArea"> <div class="InfoItem" id="InfoItem00"> <div class="Text">12345</div> <div class="Level"> <div class="Text" id="ItemText00">12345</div> </div> <div class="InfoGraph"> <div class="GraphArea" id="gauge00"><div class="Graph" id="indi00"></div></div> </div> </div> <div class="InfoItem" id="InfoItem01"> <div class="Text">12345</div> <div class="Level"> <div class="Text" id="ItemText01">12345</div> </div> <div class="InfoGraph"> <div class="GraphArea" id="gauge01"><div class="Graph" id="indi01"></div></div> </div> </div> </div> <div class="BatteryLevelArea" id="batteryLevelArea"> <div class="BatteryLevelPattern" id="battery"> <div class="Text" id="ErrMes">12345</div> <div class="BatteryGraphArea" id="batteryGraph"> <div class="BatteryGraph"><div class="Graph" id="Low"></div></div> </div> </div> </div> <div class="ModeBtnArea"><a class="FtrButton" id="modeSelectForSmall"><div class="Text">12345</div></a></div> <div class="LinkButtonArea"><a class="LinkButton" id="webManualForSmall" target="_blank" ><div class="Text">12345</div></a></div> <div class="CertBtnArea"><a class="CertLinkButton" id="certBtn" ><div class="Text">12345</div></a></div> </div> </div> <div id="pageendPRINF"></div> </div> <div class="DTL" id="sampleDTL"> <div class="Title"> <div class="Text">12345</div> <div class="EventTarget" id="EVT_DTL_BBTN"> <div class="BwdBtn"> <div class="Text">12345</div> </div> </div> </div> <div class="TitleEnd"></div> <div class="ContentArea" id="EVT_DTL_UPDW"> <div class="ErrTitle" id="ErrTitle"> <div class="Text" id ="ErrTitleText">12345</div> </div> <div class="ErrMsg"> <div class="Text" id ="ErrMsgText">12345</div> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="lnkbtn_ErrInf" target="_blank" ></a> <a class="LinkButton" id="lnkbtn_Support" target="_blank" ></a> </div> </div> <div id="pageendDTL"></div> </div> <div class="MODE" id="sampleMODE"> <div class="Title"> <div class="Text">12345</div> <div class="EventTarget" id="EVT_MODE_BBTN"> <div class="BwdBtn"> <div class="Text">12345</div> </div> </div> </div> <div class="TitleEnd"></div> <div class="EventTarget" id="EVT_MODE_UPDW"> <div class="ContentArea"> <div class="MODE_Item" id="MODE_Item"> <div class="Text" id="MODE_ItemText">12345</div> </div> <div class="ModeMessArea"> <div class="Text" id="ModeMessArea">12345</div> </div> <div class="RadioDetailButton" id="MODE_RadioButton"> <div class="ModeSelect" id="ModeSet00"> <input type="radio" name="ModeSelect" id="ModeRadio00" checked="true"> <label for="ModeRadio00" class="Text">12345</label> </div> <div class="ModeSelect" id="ModeSet01"> <input type="radio" name="ModeSelect" id="ModeRadio01"> <label for="ModeRadio01" class="Text">12345</label> </div> </div> <div class="ModeBtnArea"> <a class="FtrButton" id="logonBtn" > <div class="Text">12345</div> </a> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="TopWebManual" target="_blank" > <div class="Text">12345</div> </a> </div> <div class="CertBtnArea"> <a class="CertLinkButton" id="certBtn" > <div class="Text">12345</div> </a> </div> <div id="pageendMODE"></div> </div> </div> </div> <div class="MES_LINK" id="sampleMES_LINK"> <div class="Title"> <div class="Text">12345</div> <div class="EventTarget" id="EVT_MES_LINK_BBTN"> <div class="BwdBtn"> <div class="Text">12345</div> </div> </div> </div> <div class="TitleEnd"></div> <div class="EventTarget" id="EVT_MES_LINK_UPDW"> <div class="ContentArea"> <div class="MesItem"> <div class="Text" id="MesItemText">12345</div> </div> </div> <div class="SelectArea"> <div class="EventTarget"> <div class="SelectButton" id="EVT_MES_LINK_BTN"> <div class="Text">12345</div> </div> <a class="CertLinkButton" id="EVT_MES_LINK_BTN_LINK" href="javascript:void(0);" target="_blank" style="display:none;"> <div class="Text">12345</div> </a> </div> </div> <div id="pageendMES_LINK"></div> </div> <div class="Footer" id="FooterBar"> <div class="EventTarget"> <div class="FtrButton" id="EVT_MES_LINK_FTRBTN"> <div class="Text">12345</div> </div> </div> </div> </div> </div> <div class="ScreenGarage" id="GarageArea"> </div> <input type="hidden" id="EID" value="http://rs.ciggws.net/rd.cgi?FNC=RUI_EID2&RES=4&DEV=TS6000+series&CNM_SEP=0&mdl=TS6000+series&low=0&out=0&ac=0&srcmdl=6&resid=Other&hriid=D"> </body> </html>
-
Das ist die Ansicht wenn ich auf untersuchen gehe
Da ist z.b "<div class="InkArea InkMaz Lv050">" zu finden.<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="stylesheet" type="text/css" href="rui/CSS/common.css?ver=2.030-1801"> <link rel="stylesheet" type="text/css" href="rui/CSS/other.css?ver=2.030-1801"> <style type="text/css"></style> <title>Remote UI</title> </head> <body onselectstart="return false;"> <div class="UserView Lcd_large" id="userviewArea"> <div class="ReturnAppBar" id="returnAppBar"> <a class="LinkArea" href="#" id="returnApp"> <div class="Text" id="returnAppText"> 12345 </div> </a> </div> <div class="HorizontalContainer" id="TopMenu"> <div class="MenuPage"> <div class="ContentRelative"> <div class="MODE" id="Screen_1020"> <div class="Title" id="TitleScreen_1020"> <div class="Text"> Menü </div> <div class="EventTarget" id="EVT_MODE_BBTNScreen_1020" style="display: none;"> <div class="BwdBtn"> </div> </div> </div> <div class="TitleEnd" id="TitleEndScreen_1020" style="height: 40px;"></div> <div class="EventTarget" id="UPDWScreen_1020"> <div class="ContentArea"> <div class="MODE_Item" id="MODE_ItemScreen_1020"> <div class="Text" id="MODE_ItemTextScreen_1020"> Details </div> </div> <div class="ModeMessArea"> <div class="Text" id="ModeMessAreaScreen_1020"> Wenn ein Kennwort festgelegt wurde, ist die Eingabe eines Kennworts erforderlich. </div> </div> <div class="RadioDetailButton" id="MODE_RadioButtonScreen_1020"> <div class="ModeSelect" id="ModeSet00Screen_1020" style="display: none;"> <input type="radio" name="ModeSelectScreen_1020" id="ModeRadio00Screen_1020" checked="true" tabindex="-1"> <label for="ModeRadio00Screen_1020" class="Text"></label> </div> <div class="ModeSelect" id="ModeSet01Screen_1020" style="display: none;"> <input type="radio" name="ModeSelectScreen_1020" id="ModeRadio01Screen_1020" tabindex="-1"> <label for="ModeRadio01Screen_1020" class="Text"></label> </div> </div> <div class="ModeBtnArea"> <a class="FtrButton" id="logonBtnScreen_1020" tabindex="-1"> <div class="Text"> Anmelden </div> </a> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="TopWebManualScreen_1020" target="_blank" tabindex="-1" href="http://rs.ciggws.net/rd.cgi?FNC=RUI_HELP&RES=4&DEV=TS6000+series&CNM_SEP=0&DEV=TS6000+series&SFV=1.0&CTV=1.0&LNG=DE&CTN=SDP%2Fsdp-os.html"> <div class="Text"> Handbuch (Online) </div> </a> </div> <div class="CertBtnArea"> <a class="CertLinkButton" id="certBtnScreen_1020" tabindex="-1"> <div class="Text"> Für sichere Kommunikation </div> </a> </div> <div id="pageendMODEScreen_1020"></div> </div> </div> </div> </div> </div> <div class="ContentPage"> <div class="h10Container" id="h10Container" style="margin-left: 0%;"> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack1"> <div class="PRINF" id="Screen_1000"> <div class="Title" id="TitleScreen_1000"> <div class="Text"> Druckerst. </div> <div class="EventTarget" id="EVT_PRINF_BBTNScreen_1000" style="display: none;"> <div class="BwdBtn"> </div> </div> </div> <div class="TitleEnd" id="TitleEndScreen_1000" style="height: 40px;"></div> <div class="EventTarget" id="UPDWScreen_1000"> <div class="ContentArea" id="prinf_content_classScreen_1000"> <div class="ErrMsgArea" id="PrintInfo_MsgAreaScreen_1000"> <div class="Text" id="PrintInfo_MsgTextScreen_1000"> Drucker bereit. </div> <div class="LinkButtonArea Err"> <div class="LinkButton" id="lnkbtn_DetailScreen_1000" style="display: none;"> 12345 </div> </div> </div> <div class="InkLevel"> <div class="Text"> Gesch. Tintenstände </div> </div> <div class="InkInfo"> <div class="InkAreaLine1" id="ink_area_line1Screen_1000"> <div class="InkPattern" id="inktank0Screen_1000" style="display: table;"> <div class="InkMess"> M </div> <div class="InkArea InkMaz Lv050"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank1Screen_1000" style="display: table;"> <div class="InkMess"> BK </div> <div class="InkArea InkBlk Lv060"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank2Screen_1000" style="display: table;"> <div class="InkMess"> Y </div> <div class="InkArea InkYel Lv050"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank3Screen_1000"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank4Screen_1000"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank5Screen_1000"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> </div> <div class="InkAreaLine1" id="ink_area_line2Screen_1000"> <div class="InkPattern" id="inktank6Screen_1000" style="display: table;"> <div class="InkMess"> PGBK </div> <div class="InkArea InkPbk Lv040"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank7Screen_1000" style="display: table;"> <div class="InkMess"> C </div> <div class="InkArea InkCia Lv040"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank8Screen_1000"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank9Screen_1000"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank10Screen_1000"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank11Screen_1000"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> </div> </div> <div class="LinkButtonArea" id="InkLinkScreen_1000"> <a class="LinkButton" id="lnkbtn_InkModelScreen_1000" target="_blank" tabindex="-1" href="http://rs.ciggws.net/rd.cgi?FNC=RUI_INK&RES=4&DEV=TS6000+series&CNM_SEP=0&DEV=TS6000+series&LNG=DE&HRI=D">Tintennummer</a> <a class="LinkButton" id="lnkbtn_BuyInkScreen_1000" target="_blank" tabindex="-1" href="http://rs.ciggws.net/rd.cgi?FNC=RUI_EID2&RES=4&DEV=TS6000+series&CNM_SEP=0&mdl=TS6000+series&low=0&out=0&ac=0&srcmdl=6&resid=Other&hriid=D">J. Tinte best.</a> </div> <div class="InfoArea" id="infoAreaScreen_1000" style="display: table;"> <div class="InfoItem" id="InfoItem00Screen_1000"> <div class="Text"> Signalstärke </div> <div class="Level"> <div class="Text" id="ItemText00Screen_1000"> 27% </div> </div> <div class="InfoGraph"> <div class="GraphArea" id="gauge00Screen_1000" style="display: table;"> <div class="Graph" id="indi00Screen_1000" style="width: 27%;"></div> </div> </div> </div> <div class="InfoItem" id="InfoItem01Screen_1000"> <div class="Text"> Übertragungsqualität </div> <div class="Level"> <div class="Text" id="ItemText01Screen_1000"> 22% </div> </div> <div class="InfoGraph"> <div class="GraphArea" id="gauge01Screen_1000" style="display: table;"> <div class="Graph" id="indi01Screen_1000" style="width: 22%;"></div> </div> </div> </div> </div> <div class="BatteryLevelArea" id="batteryLevelAreaScreen_1000" style="display: none;"> <div class="BatteryLevelPattern" id="batteryScreen_1000"> <div class="Text" id="ErrMesScreen_1000"> undefined </div> <div class="BatteryGraphArea" id="batteryGraphScreen_1000"> <div class="BatteryGraph"> <div class="Graph" id="LowScreen_1000"></div> </div> </div> </div> </div> <div class="ModeBtnArea"> <a class="FtrButton" id="modeSelectForSmallScreen_1000" tabindex="-1" style="display: none;"> <div class="Text"></div></a> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="webManualForSmallScreen_1000" target="_blank" tabindex="-1" style="display: none;"> <div class="Text"></div></a> </div> <div class="CertBtnArea"> <a class="CertLinkButton" id="certBtnScreen_1000" tabindex="-1" style="display: none;"> <div class="Text"></div></a> </div> </div> </div> <div id="pageendPRINFScreen_1000"></div> </div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack2"> <div class="dummy" id="replaceDebug2"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack3"> <div class="dummy" id="replaceDebug3"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack4"> <div class="dummy" id="replaceDebug4"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack5"> <div class="dummy" id="replaceDebug5"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack6"> <div class="dummy" id="replaceDebug6"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack7"> <div class="dummy" id="replaceDebug7"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack8"> <div class="dummy" id="replaceDebug8"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack9"> <div class="dummy" id="replaceDebug9"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack10"> <div class="dummy" id="replaceDebug10"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack11"> <div class="dummy" id="replaceDebug11"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack12"> <div class="dummy" id="replaceDebug12"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack13"> <div class="dummy" id="replaceDebug13"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack14"> <div class="dummy" id="replaceDebug14"></div> </div> </form> <form class="Page_for_h10" action="#" onsubmit="return false;"> <div class="ContentRelative" id="stack15"> <div class="dummy" id="replaceDebug15"></div> </div> </form> </div> </div> </div> </div> <div class="Sample" id="SampleArea"> <div class="PRINF" id="samplePRINF"> <div class="Title"> <div class="Text"> 12345 </div> <div class="EventTarget" id="EVT_PRINF_BBTN"> <div class="BwdBtn"> <div class="Text"> 12345 </div> </div> </div> </div> <div class="TitleEnd"></div> <div class="EventTarget" id="EVT_PRINF_UPDW"> <div class="ContentArea" id="prinf_content_class"> <div class="ErrMsgArea" id="PrintInfo_MsgArea"> <div class="Text" id="PrintInfo_MsgText"> 12345 </div> <div class="LinkButtonArea Err"> <div class="LinkButton" id="lnkbtn_Detail"> 12345 </div> </div> </div> <div class="InkLevel"> <div class="Text"> 12345 </div> </div> <div class="InkInfo"> <div class="InkAreaLine" id="ink_area_line1"> <div class="InkPattern" id="inktank0"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank1"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank2"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank3"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank4"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank5"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> </div> <div class="InkAreaLine" id="ink_area_line2"> <div class="InkPattern" id="inktank6"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank7"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank8"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank9"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank10"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> <div class="InkPattern" id="inktank11"> <div class="InkMess"></div> <div class="InkArea"> <div class="InkBar"></div> </div> </div> </div> </div> <div class="LinkButtonArea" id="InkLink"> <a class="LinkButton" id="lnkbtn_InkModel" target="_blank">12345</a> <a class="LinkButton" id="lnkbtn_BuyInk" target="_blank">12345</a> </div> <div class="InfoArea" id="infoArea"> <div class="InfoItem" id="InfoItem00"> <div class="Text"> 12345 </div> <div class="Level"> <div class="Text" id="ItemText00"> 12345 </div> </div> <div class="InfoGraph"> <div class="GraphArea" id="gauge00"> <div class="Graph" id="indi00"></div> </div> </div> </div> <div class="InfoItem" id="InfoItem01"> <div class="Text"> 12345 </div> <div class="Level"> <div class="Text" id="ItemText01"> 12345 </div> </div> <div class="InfoGraph"> <div class="GraphArea" id="gauge01"> <div class="Graph" id="indi01"></div> </div> </div> </div> </div> <div class="BatteryLevelArea" id="batteryLevelArea"> <div class="BatteryLevelPattern" id="battery"> <div class="Text" id="ErrMes"> 12345 </div> <div class="BatteryGraphArea" id="batteryGraph"> <div class="BatteryGraph"> <div class="Graph" id="Low"></div> </div> </div> </div> </div> <div class="ModeBtnArea"> <a class="FtrButton" id="modeSelectForSmall"> <div class="Text"> 12345 </div></a> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="webManualForSmall" target="_blank"> <div class="Text"> 12345 </div></a> </div> <div class="CertBtnArea"> <a class="CertLinkButton" id="certBtn"> <div class="Text"> 12345 </div></a> </div> </div> </div> <div id="pageendPRINF"></div> </div> <div class="DTL" id="sampleDTL"> <div class="Title"> <div class="Text"> 12345 </div> <div class="EventTarget" id="EVT_DTL_BBTN"> <div class="BwdBtn"> <div class="Text"> 12345 </div> </div> </div> </div> <div class="TitleEnd"></div> <div class="ContentArea" id="EVT_DTL_UPDW"> <div class="ErrTitle" id="ErrTitle"> <div class="Text" id="ErrTitleText"> 12345 </div> </div> <div class="ErrMsg"> <div class="Text" id="ErrMsgText"> 12345 </div> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="lnkbtn_ErrInf" target="_blank"></a> <a class="LinkButton" id="lnkbtn_Support" target="_blank"></a> </div> </div> <div id="pageendDTL"></div> </div> <div class="MODE" id="sampleMODE"> <div class="Title"> <div class="Text"> 12345 </div> <div class="EventTarget" id="EVT_MODE_BBTN"> <div class="BwdBtn"> <div class="Text"> 12345 </div> </div> </div> </div> <div class="TitleEnd"></div> <div class="EventTarget" id="EVT_MODE_UPDW"> <div class="ContentArea"> <div class="MODE_Item" id="MODE_Item"> <div class="Text" id="MODE_ItemText"> 12345 </div> </div> <div class="ModeMessArea"> <div class="Text" id="ModeMessArea"> 12345 </div> </div> <div class="RadioDetailButton" id="MODE_RadioButton"> <div class="ModeSelect" id="ModeSet00"> <input type="radio" name="ModeSelect" id="ModeRadio00" checked="true"> <label for="ModeRadio00" class="Text">12345</label> </div> <div class="ModeSelect" id="ModeSet01"> <input type="radio" name="ModeSelect" id="ModeRadio01"> <label for="ModeRadio01" class="Text">12345</label> </div> </div> <div class="ModeBtnArea"> <a class="FtrButton" id="logonBtn"> <div class="Text"> 12345 </div> </a> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="TopWebManual" target="_blank"> <div class="Text"> 12345 </div> </a> </div> <div class="CertBtnArea"> <a class="CertLinkButton" id="certBtn"> <div class="Text"> 12345 </div> </a> </div> <div id="pageendMODE"></div> </div> </div> </div> <div class="MES_LINK" id="sampleMES_LINK"> <div class="Title"> <div class="Text"> 12345 </div> <div class="EventTarget" id="EVT_MES_LINK_BBTN"> <div class="BwdBtn"> <div class="Text"> 12345 </div> </div> </div> </div> <div class="TitleEnd"></div> <div class="EventTarget" id="EVT_MES_LINK_UPDW"> <div class="ContentArea"> <div class="MesItem"> <div class="Text" id="MesItemText"> 12345 </div> </div> </div> <div class="SelectArea"> <div class="EventTarget"> <div class="SelectButton" id="EVT_MES_LINK_BTN"> <div class="Text"> 12345 </div> </div> <a class="CertLinkButton" id="EVT_MES_LINK_BTN_LINK" href="javascript:void(0);" target="_blank" style="display:none;"> <div class="Text"> 12345 </div> </a> </div> </div> <div id="pageendMES_LINK"></div> </div> <div class="Footer" id="FooterBar"> <div class="EventTarget"> <div class="FtrButton" id="EVT_MES_LINK_FTRBTN"> <div class="Text"> 12345 </div> </div> </div> </div> </div> </div> <div class="ScreenGarage" id="GarageArea"> <div class="MES_LINK" id="Screen_1100"> <div class="Title" id="TitleScreen_1100"> <div class="Text"> Für sichere Kommunikation </div> <div class="EventTarget" id="EVT_MES_LINK_BBTNScreen_1100"> <div class="BwdBtn"> </div> </div> </div> <div class="TitleEnd" id="TitleEndScreen_1100" style="height: 40px;"></div> <div class="EventTarget" id="UPDWScreen_1100"> <div class="ContentArea"> <div class="MesItem"> <div class="Text" id="MesItemTextScreen_1100"> 1. Prüfen Sie, ob die im Browser angezeigte Adresse und die Adresse des Druckers übereinstimmen. 2. Wählen Sie [Herunterladen] aus, um auf Ihrem Gerät ein Stammzertifikat zu installieren. </div> </div> </div> <div class="SelectArea"> <div class="EventTarget"> <div class="SelectButton" id="EVT_MES_LINK_BTNScreen_1100" style="display: none;"> <div class="Text"></div> </div> <a class="CertLinkButton" id="EVT_MES_LINK_BTN_LINKScreen_1100" href="http://rs.ciggws.net/rd.cgi?FNC=RUI_CERT&RES=4&DEV=TS6000+series&CNM_SEP=0&DEV=TS6000+series&LNG=DE&CTN=PW%2Fpw_security.html" target="_blank" style="display: inline-block;" tabindex="-1"> <div class="Text"> So installieren Sie </div> </a> </div> </div> <div id="pageendMES_LINKScreen_1100"></div> </div> <div class="Footer" id="FooterBarScreen_1100"> <div class="EventTarget"> <div class="FtrButton" id="EVT_MES_LINK_FTRBTNScreen_1100"> <div class="Text"> Herunterladen </div> </div> </div> </div> </div> <div class="DTL" id="Screen_4011"> <div class="Title" id="TitleScreen_4011"> <div class="Text"> Details </div> <div class="EventTarget" id="EVT_DTL_BBTNScreen_4011"> <div class="BwdBtn"> </div> </div> </div> <div class="TitleEnd" id="TitleEndScreen_4011" style="height: 40px;"></div> <div class="ContentArea" id="UPDWScreen_4011"> <div class="ErrTitle" id="ErrTitleScreen_4011"> <div class="Text" id="ErrTitleTextScreen_4011"> Supportcode </div> </div> <div class="ErrMsg"> <div class="Text" id="ErrMsgTextScreen_4011"> undefined </div> </div> <div class="LinkButtonArea"> <a class="LinkButton" id="lnkbtn_ErrInfScreen_4011" target="_blank" tabindex="-1" href="http://rs.ciggws.net/rd.cgi?FNC=RUI_ERR&RES=4&DEV=TS6000+series&CNM_SEP=0&DEV=TS6000+series&LNG=DE&PDR=4&ERR=NO">Fehlersuche</a> <a class="LinkButton" id="lnkbtn_SupportScreen_4011" target="_blank" tabindex="-1" href="http://canon.com/support/">Support</a> </div> </div> <div id="pageendDTLScreen_4011"></div> </div> <div class="dummy" id="replaceTop"></div> <div class="dummy" id="replaceDebug1"></div> </div> <input type="hidden" id="EID" value="http://rs.ciggws.net/rd.cgi?FNC=RUI_EID2&RES=4&DEV=TS6000+series&CNM_SEP=0&mdl=TS6000+series&low=0&out=0&ac=0&srcmdl=6&resid=Other&hriid=D"> </body> </html>
-
@Ceel
dann wird das dynamisch per javascript geschrieben.
da müsste man schauen, woher das javascript die daten nimmt.
das könnte schwieriger werdendu könntest einmal die developer console von google chrome öffnen
und dann im reiter network den filter auf fetch/xhr setzen
und dann neu laden.
da müssten dann json dateien kommen. evtl kann man da etwas erkennen
wenn da aber verschlüsselte daten ankommen dann wird es noch schwierigerwelches druckermodell ist es?
-
@OliverIO
Das ist ein Canon TS6050Gibt es da eine andere Möglichkeit?
-
@ceel sagte in Div class auslesen / parsen:
Canon TS6050
gehe mal in die druckereinstellungen und suche nach SNMP (Simple Network Machine Protokol). Der Anleitung nach, kann man das An und Abschalten.
Das ist eigentlich der Industriestandard bei Druckern wie man Statusinformationen abrufen kann.
https://de.wikipedia.org/wiki/Simple_Network_Management_ProtocolLeider für Heimgeräte oft nicht gut dokumentiert. Die geräte bieten oft 100e wenn nicht gar 1000e Datenpunkte an. Hier OID genannt. Unter diesen Datenpunkten können die Daten dann abgerufen werden
Dann kannst du noch diese Software holen
https://www.heise.de/download/product/ireasoning-mib-browser-personal-edition-56374
Darüber kann man die Datenpunkte abrufen. Walk oder so nennt sich dier KnopfDann kannst du hier schauen
https://www.baitando.com/it/2017/10/28/monitor-printer-ink-level-with-openhab-using-snmp
Die Daten scheinen unterhalb des Astes 1.3.6.1 enthalten zu sein.Wenn du die Bezeichnungen der Datenpunkte gefunden hast, dann kannst du diese über den SNMP-Adapter in iobroker verfügbar machen.
Falls die in dem Artikel nicht stimmen, dann musst du in google unter den folgenden Keywords
canon snmp ink status
weitersuchen, oder den Hersteller anschreiben -
@oliverio
Habe ich alles versucht
Leider übergibt er nur -2 über snmp -
Hat jemand anderes Ideen?
-
@ceel Mit snmp müsste es eigentlich gehen. Ich lese das via snmp via NodeRed aus - und das klappt auch mit anderen Marken als meinem HP- Drucker - siehe hier: https://forum.iobroker.net/topic/44337/hp-tintenfüllstände-mit-nodered-und-snmp
Ich würde Dir halt generell mal empfehlen, den in dem Thread genannten MIB Browser zu installieren
.
Auf dem Screenshot siehst Du die OID 1.3.6.1.2.1.43.11.1 und den Pfad in der herstellerunabhängigen Printer MIB. Jedenfalls kannst Du so
- sehen, ob Du eine snmp Verbindung aufbauen kannst
- dich über die MIB durchsuchen, wo die Werte bei Dir drin stehen.
Den MIB Browser habe ich mir damals hier runtergeladen: https://www.manageengine.de/produkte-loesungen/kostenlose-produkte-und-editionen/free-snmp-mib-browser-tool.html