daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### search.json ###
  2. """
  3. </td><td class="alignRight"><input id="j_id_23" name="j_id_23" onclick="jsf.util.chain(this,event,&quot;window.open('\/SearchWeb\/faces\/search\/query\/query\u002Deditor.xhtml?queryKey=95588\u0026returnType=','editPage').focus();&quot;,&quot;RichFaces.ajax(\&quot;j_id_23\&quot;,event,{\&quot;incId\&quot;:\&quot;1\&quot;} )&quot;);return false;" value="Edit" title="Edit Query" type="submit" /><input id="j_id_24" name="j_id_24" onclick="jsf.util.chain(this,event,&quot;window.close(); return false;&quot;,&quot;RichFaces.ajax(\&quot;j_id_24\&quot;,event,{\&quot;incId\&quot;:\&quot;1\&quot;} )&quot;);return false;" value="Close" type="submit" /></td></tr></tbody></table><span style="margin-left: 3px;" class="label">Number of results: </span><span class="text">10</span><input type="hidden" id="j_id_28" name="j_id_28" value="10" /><div id="j_id_29" class="rf-cp rf-tgp max"><input id="j_id_29-value" name="j_id_29-value" type="hidden" value="false" /><div id="j_id_29:header" class="rf-cp-hdr rf-cp-hdr-colps"><table class="rf-cp-gr"><tbody><tr><td class="rf-cp-ico"><div class="rf-cp-ico-colps rf-ico-chevron-up rf-ico-t-hdr"></div><div class="rf-cp-ico-exp rf-ico-chevron-down rf-ico-t-hdr"></div></td><td class="rf-cp-lbl"><div class="rf-cp-lbl-exp">Visualized Query Filter</div><div class="rf-cp-lbl-colps">Visualized Query Filter</div></td></tr></tbody></table></div><div id="j_id_29:content" class="rf-cp-b" style="display:none"><b>(</b><br/>&nbsp;&nbsp;&nbsp;Answer.Answer code Starts With [A]<br/>&nbsp;&nbsp;&nbsp;<b>OR</b><br/>&nbsp;&nbsp;&nbsp;Answer.Answer code Starts With [B]<br/><b>)</b><br/><b>AND</b><br/>Additional info.DIDDET code Is In [T, S]<br/><b>AND</b><br/>Answer.SHODET code Is In [YR]<br/><b>AND</b><br/>PDU.Tag 6 code Contains [Sysop]<br/><b>AND</b><br/>TR History Register.Register date Is Between [2018-07-01, 2018-09-30]<br/></div><div id="j_id_29:empty" class="rf-cp-empty" style="display:block"></div></div>
  4. """
  5.  
  6.  
  7. import re
  8.  
  9. with open("search.json") as file:
  10.     for line in file:
  11.         query = re.search('(?<=Number of results: </span><span class="text">)(\d+)', line)
  12.         if query:
  13.             print((query.group()))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top