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
bdcb03c4
Commit
bdcb03c4
authored
Jun 06, 2018
by
Kiste
Browse files
Fix shit
parent
86e1569a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ftfdscrpr/ftfdscrpr.py
View file @
bdcb03c4
...
...
@@ -112,6 +112,8 @@ def do_feed(url, rules_path, verbose):
if
comments
:
for
e
in
comments
:
soup
.
append
(
e
)
if
verbose
:
print
(
'Appending comments'
)
cleanup_soup
(
soup
,
url_rules
,
verbose
)
fe
.
content
(
str
(
soup
),
type
=
'html'
)
...
...
rules.json
View file @
bdcb03c4
...
...
@@ -29,7 +29,7 @@
},
"https://www.heise.de/((newsticker|foto|security|mac-and-i|ix|make)/meldung|meldung|security/artikel)/.*"
:
{
"article"
:
"div[class='article-content']"
,
"comments"
:
"footer[class
*
='
beitrags
footer']"
,
"comments"
:
"footer[class='
article-
footer']"
,
"reformat"
:
[
{
"search"
:
"html?.+=.+"
,
...
...
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