Commit 78bdb937 authored by Kiste's avatar Kiste
Browse files

Fix stuff

parent ffca2013
......@@ -71,6 +71,7 @@ def do_feed(url, rules_path, verbose):
fe.updated(entry['updated'])
if verbose:
print(entry['title'])
print(entry['link'])
url_rules = None
for regex in rules:
......@@ -110,7 +111,7 @@ def do_feed(url, rules_path, verbose):
a['href'] = 'https://m.heise.de' + a['href']
soup.append(e_copy)
cleanup_soup(soup, url_rules, verbose)
fe.content(unicode(soup.), type='html')
fe.content(str(soup), type='html')
return fg
......
......@@ -21,7 +21,7 @@
"article": "article",
"next": "a[id='atoc_next']"
},
"https://www.heise.de/((newsticker|developer|foto|security|mac-and-i|ix|make)/meldung|meldung|security/artikel)/.*": {
"https://www.heise.de/((newsticker|foto|security|mac-and-i|ix|make)/meldung|meldung|security/artikel)/.*": {
"article": "div[class='article-content']",
"comments": "footer[class='beitragsfooter']",
"heisehack": true,
......@@ -52,5 +52,23 @@
"div[class*='akwa-ad-container']"
],
"next": "a[class='seite_weiter']"
},
"https://www.heise.de/developer/meldung/.*": {
"article": "article",
"comments": "div[class='article-footer__content']",
"heisehack": true,
"decompose": [
"figure",
"div[class='publish-info']",
"div[class*='bcadv']",
"script",
"noscript",
"aside",
"div[class*='adbottom']",
"h2[class='article__heading']",
"nav[class='article-footer__foren']",
"div[class='article-footer_shariff']",
"div[class*='akwa-ad-container']"
]
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment