-
Notifications
You must be signed in to change notification settings - Fork 260
/
.wp.pl.txt
33 lines (23 loc) · 1.19 KB
/
.wp.pl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
body: (//article)[1]
strip: //*[contains(@class, 'subjectsList')]
strip: //svg
# sometimes header contains picture wuth text overlay (title, author, date)
# first line eliminates complete header incl. photo
# instead you can #comment this out and activate the following 3 strips
# which left the date+time back in the body (ugly)
# strip: //div[@data-st-area="article-header"]
strip: //div[@data-st-area="article-header"]//*[contains(@class, 'article--title')]
strip: //div[@data-st-area="article-header"]//ul/li
strip: //div[@data-st-area="article-header"]//ul
# strip adverts placeholder image
strip: //img[@width='56' and @height='45']
# strip article-title from body
strip: //h1[contains(@class, 'article--title')]
#strip twitter block
strip: //blockquote[contains(@class, 'twitter-tweet')]
# more cleanup
strip: //button
prune: no
test_url: https://wiadomosci.wp.pl/spedzil-dwa-miesiace-w-podziemiach-azowstalu-mowili-ze-mozemy-jezdzic-po-calej-ukrainie-a-i-tak-nas-dopadna-6769475637812128a
test_url: https://wiadomosci.wp.pl/zareczyny-polityka-960-m-pod-ziemia-tak-sie-bawi-wladza-pis-6854775542082464a
test_url: https://wiadomosci.wp.pl/pieklo-pieklo-pieklo-jachira-uderza-w-pis-6854849794407328a