Skip to content

Commit

Permalink
Try fixing heise.de
Browse files Browse the repository at this point in the history
Closes #228, closes #30
  • Loading branch information
stefanw committed Jan 27, 2024
1 parent 88d8a0d commit a32216f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,18 +470,20 @@ const sites: Sites = {
}
],
selectors: {
query: makeQueryFunc(['.article-content p', 'article.xp__article p.xp__paragraph']),
query: makeQueryFunc(['.article-layout__content p:not(:first-child)', 'article.xp__article p.xp__paragraph']),
date: 'time',
paywall: 'a-gift, a-paid-content-teaser, #purchase',
main: '.article-content, article.xp__article',
loader: '.article-content p:last-of-type'
main: '.article-layout__content article-layout__footer::before, article.xp__article',
// select p before paywall element
loader: '.article-layout__content p:has( + a-gift, a-paid-content-teaser, #purchase)'
},
dateRange: [8, 1], // search from 7 days before to one day after given date
source: 'genios.de',
sourceParams: {
dbShortcut: 'MACI,TERE,CT,CTFO,IX,MAKE'
dbShortcut: 'HEON,MACI,TERE,CT,CTFO,IX,MAKE',
sourceNames: ['Heise online', 'c\'t - magazin für computertechnik (CT)', 'c\'t Digitale Fotografie']
},
waitOnLoad: true
waitOnLoad: 2000
},
'www.nachrichten.at': {
examples: [
Expand Down

0 comments on commit a32216f

Please sign in to comment.