Commit 9030e0e9 authored by Kiste's avatar Kiste
Browse files

heise got responsive!

parent 8b6741f1
......@@ -112,13 +112,6 @@ def do_feed(url, rules_path, verbose):
if comments:
for e in comments:
soup.append(e)
if 'heisehack' in url_rules and url_rules['heisehack']:
if verbose:
print('~heisehack~')
e_copy = copy.copy(e)
for a in e_copy.find_all('a'):
a['href'] = 'https://m.heise.de' + a['href']
soup.append(e_copy)
cleanup_soup(soup, url_rules, verbose)
fe.content(str(soup), type='html')
......
......@@ -30,7 +30,6 @@
"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,
"reformat": [
{
"search": "html?.+=.+",
......@@ -65,7 +64,6 @@
"https://www.heise.de/developer/meldung/.*": {
"article": "article",
"comments": "div[class='article-footer__content']",
"heisehack": true,
"decompose": [
"figure",
"div[class='publish-info']",
......
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