浏览代码

Summary: lfi logik an neues Layout angepasst

Markus Spring 2 年之前
父节点
当前提交
6c40dd1753
共有 1 个文件被更改,包括 9 次插入7 次删除
  1. 9 7
      blogsiread.py

+ 9 - 7
blogsiread.py

@@ -2,11 +2,14 @@
 # -*- coding: utf-8 -*-
 # coding=utf8
 
-#       $Id: blogsiread.py,v 1.11 2022/12/28 07:30:17 springm Exp $
-#       $Revision: 1.11 $
-#       $Date: 2022/12/28 07:30:17 $
+#       $Id: blogsiread.py,v 1.12 2023/12/07 20:14:40 springm Exp springm $
+#       $Revision: 1.12 $
+#       $Date: 2023/12/07 20:14:40 $
 #
 #       $Log: blogsiread.py,v $
+#       Revision 1.12  2023/12/07 20:14:40  springm
+#       Summary: lfi auskommentiert bis zur Reparatur
+#
 #       Revision 1.11  2022/12/28 07:30:17  springm
 #       Summary: added try...except to photoplacegallery
 #
@@ -210,8 +213,7 @@ def lfionlinede(matchgroup, domain, i):
     with urllib.request.urlopen(matchgroup[1]) as response:
         html = response.read()
         logger.debug(f"{matchgroup[1]} -- {len(html.decode('utf-8'))}")
-        # string2hash = f"""html"""
-        regex = r"""<div class="titlebox30 cu-pointer" onclick="window.location = '(.*?)'">\s*<h1 class="typo-1">(.*?)</h1>.*?</div>""" 
+        regex = r"""<div class="card">\s*<a href="(.*?)">.*?<p class="date l12 "><span class="story-flag">STORIES.*?</span><span>.*?</span></p>\s*<h3 class="l-b24 m-b18 s-b18">(.*?)</h3>"""
         p = re.search( regex, html.decode('utf-8'), re_flags )
         string2hash = p[0]
         logger.debug(f"{p[0]}")
@@ -276,8 +278,8 @@ def treat_special_domain(domain, b, i):
     ts = 0
     if domain == 'www.orengrad.com':
         (b, ts)  = orengradcom(b, domain, i)
-    # elif domain == 'lfi-online.de':
-    #     (b, ts)  = lfionlinede(b, domain, i)
+    elif domain == 'lfi-online.de':
+        (b, ts)  = lfionlinede(b, domain, i)
     elif domain == 'photoplacegallery.com':
         (b, ts)  = photoplacegallery(b, domain, i)
     elif domain == 'www.picturesfromthezone.com':