Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiste
ftfdscrpr
Commits
9030e0e9
Commit
9030e0e9
authored
May 25, 2018
by
Kiste
Browse files
heise got responsive!
parent
8b6741f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
ftfdscrpr/ftfdscrpr.py
View file @
9030e0e9
...
...
@@ -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'
)
...
...
rules.json
View file @
9030e0e9
...
...
@@ -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']"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment