Эх сурвалжийг харах

Summary: lfionline zurckgestellt auf hash des gesamten html.

Markus Spring 3 жил өмнө
parent
commit
0359caafb8
1 өөрчлөгдсөн 8 нэмэгдсэн , 5 устгасан
  1. 8 5
      blogsiread.py

+ 8 - 5
blogsiread.py

@@ -1,9 +1,12 @@
 #!/usr/bin/python3
 
-# 	$Id: blogsiread.py,v 1.6 2022/10/10 14:30:28 springm Exp springm $
-#       $Revision: 1.6 $
-#       $Date: 2022/10/10 14:30:28 $
+# 	$Id: blogsiread.py,v 1.7 2022/10/10 15:16:29 springm Exp springm $
+#       $Revision: 1.7 $
+#       $Date: 2022/10/10 15:16:29 $
 #       $Log: blogsiread.py,v $
+#       Revision 1.7  2022/10/10 15:16:29  springm
+#       Summary: added special treatment for picturesfromthezone
+#
 #       Revision 1.6  2022/10/10 14:30:28  springm
 #       Summary: lfi repariert
 #
@@ -185,9 +188,9 @@ def lfionlinede(b, domain, i):
     ts = 0                      # timestamp
     with urllib.request.urlopen(b[1]) as response:
         html = response.read()
+        string2hash = f"""html"""
         p = re.search('titlebox30 cu-pointer[\'"] onclick=[\'"]window.location\s*=\s*[\'"](https://.*?)[\'"][\'"]>\s*<h1.*?>(.*?)</h1', html.decode('utf-8'), re.MULTILINE | re.DOTALL)
         # logger.debug(f"{p[2]}")
-        string2hash = f"""p[2]"""
         m.update(string2hash.encode('utf-8'))
         hash = (m.hexdigest())
         if not domain in meta_values: # first run
@@ -195,7 +198,7 @@ def lfionlinede(b, domain, i):
         if not meta_values[domain]['hash'] == hash:      # Unterschiedliche Hashes
             logger.debug('unterschiedliche hashes')
             logger.debug(f"search result {p[1]} {p[2]}")
-            string2hash = f"""p[2]"""
+            # string2hash = f"""p[2]"""
             m.update(string2hash.encode('utf-8'))
             # hash = (m.hexdigest())
             meta_values[domain] = { 'hash': hash,