Html 使用iMacros将动态数据提取到剪贴板
我想从一行句子中提取动态词。这是OTP。 问题是每次刷新时OTP都会发生变化&这个6个字符的OTP位于文本行中 e、 g:为应用程序id生成的OTP为:30AF06。(本OTP有效期为5分钟)。该“30AF06”需要从该行中提取 以下是html正文部分:Html 使用iMacros将动态数据提取到剪贴板,html,web-scraping,imacros,Html,Web Scraping,Imacros,我想从一行句子中提取动态词。这是OTP。 问题是每次刷新时OTP都会发生变化&这个6个字符的OTP位于文本行中 e、 g:为应用程序id生成的OTP为:30AF06。(本OTP有效期为5分钟)。该“30AF06”需要从该行中提取 以下是html正文部分: <tr> <td valign="top" width="100%"> <table class="visa_table" width="100%"> <tbody>&l
<tr>
<td valign="top" width="100%">
<table class="visa_table" width="100%">
<tbody><tr>
<td style="text-align: center;font-weight: bold"><br>Generated OTP for application id is : 30AF06. (This OTP is valid for 5 min.)</td></tr>
为应用程序id生成的OTP为:30AF06。(本OTP有效期为5分钟。)
全身:
<form name="OnlineForm" method="post" onsubmit="return verify();" autocomplete="off">
<table class="visa_table" width="77%">
<tbody><tr>
<td class="mainHeading" colspan="3"> </td>
</tr>
<tr>
<td colspan="3" class="text_center">
<div class="pageHeading text_center">
Appointment OTP
</div>
</td>
</tr>
<tr>
<td valign="top" width="100%">
<table class="visa_table" width="100%">
<tbody><tr>
<td style="text-align: center;font-weight: bold"><br>Generated OTP for application id is : 30AF06. (This OTP is valid for 5 min.)</td>
</tr>
<tr>
<td style="text-align: center"><br><br>
<input class="btn btn-primary" value="Home Page" onclick="location.href = 'index.html';" type="button"></td>
</tr>
</tbody></table>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody></table>
</form>
任命检察官
为应用程序id生成的OTP为:30AF06。(本OTP有效期为5分钟。)
试试这个变体:
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=TABLE FORM=NAME:"OnlineForm" ATTR=CLASS:"visa_table"&&width:"100%" EXTRACT=TXT
SET id EVAL("'{{!EXTRACT}}'.match(/id is : (\\w+)\\./)[1];")