mirror of
https://codeberg.org/readeck/readeck.git
synced 2025-12-22 13:17:10 +00:00
Updated Site Config files
This commit is contained in:
56
pkg/extract/contentscripts/assets/site-config/ascii.jp.json
Normal file
56
pkg/extract/contentscripts/assets/site-config/ascii.jp.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"title_selectors": [
|
||||
"//div[@id='articleHead']//h1"
|
||||
],
|
||||
"body_selectors": [
|
||||
"//div[@id='contents_detail']"
|
||||
],
|
||||
"date_selectors": [
|
||||
"substring-before(substring-after(//script[contains(text(), 'OpnDate')][1], \"'OpnDate':'\"),\"',\")"
|
||||
],
|
||||
"author_selectors": [
|
||||
"//p[contains(concat(' ',normalize-space(@class),' '),' author ')]"
|
||||
],
|
||||
"strip_selectors": null,
|
||||
"strip_id_or_class": [
|
||||
"relatedarticle",
|
||||
"serial",
|
||||
"artsCont",
|
||||
"returnCat"
|
||||
],
|
||||
"strip_image_src": null,
|
||||
"native_ad_selectors": null,
|
||||
"tidy": false,
|
||||
"prune": false,
|
||||
"autodetect_on_failure": true,
|
||||
"single_page_link_selectors": null,
|
||||
"next_page_link_selectors": [
|
||||
"//link[@rel=\"next\"]",
|
||||
"//div[@class=\"pages\"]/a[contains(text(),\"次へ\")]"
|
||||
],
|
||||
"replace_strings": [
|
||||
[
|
||||
"\u003cdiv class=\"photo single\"\u003e",
|
||||
"\u003cdiv dummyclass=\"photo single\"\u003e"
|
||||
]
|
||||
],
|
||||
"http_headers": null,
|
||||
"tests": [
|
||||
{
|
||||
"url": "https://ascii.jp/elem/000/004/350/4350373/",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://ascii.jp/limit/group/ida/elem/000/004/353/4353258/",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://ascii.jp/elem/000/004/353/4353850/?crank\u0026rank=1",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://ascii.jp/elem/000/004/340/4340906/",
|
||||
"contains": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"title_selectors": null,
|
||||
"body_selectors": [
|
||||
"//article[@data-hook='post']//section[@data-hook='post-description']"
|
||||
],
|
||||
"date_selectors": null,
|
||||
"author_selectors": null,
|
||||
"strip_selectors": [
|
||||
"//button",
|
||||
"//br[@role=\"presentation\"]"
|
||||
],
|
||||
"strip_id_or_class": null,
|
||||
"strip_image_src": null,
|
||||
"native_ad_selectors": null,
|
||||
"tidy": true,
|
||||
"prune": true,
|
||||
"autodetect_on_failure": true,
|
||||
"single_page_link_selectors": null,
|
||||
"next_page_link_selectors": null,
|
||||
"replace_strings": [
|
||||
[
|
||||
"data-pin-media=\"https",
|
||||
"srcset=\"https"
|
||||
]
|
||||
],
|
||||
"http_headers": null,
|
||||
"tests": [
|
||||
{
|
||||
"url": "https://www.banglarrannaghor.com/post/festive-chicken-mandi-with-crispy-skin-stovetop-method",
|
||||
"contains": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"title_selectors": [
|
||||
"//h1[@class=\"article-tit\"]"
|
||||
],
|
||||
"body_selectors": null,
|
||||
"date_selectors": null,
|
||||
"author_selectors": null,
|
||||
"strip_selectors": [
|
||||
"//div[contains(@class, 'article-detail-btn-wrap')]",
|
||||
"//div[contains(@class, 'article-detail-follow')]",
|
||||
"//div[contains(@class, 'article-wall85029')]",
|
||||
"//div[contains(@class, 'continue')]",
|
||||
"//div[contains(@class, 'article-wall86154')]"
|
||||
],
|
||||
"strip_id_or_class": [
|
||||
"section-article-detail_magazine",
|
||||
"articles-list-pager",
|
||||
"article-detail-tag",
|
||||
"ad-head__tit",
|
||||
"sp-related-tit"
|
||||
],
|
||||
"strip_image_src": null,
|
||||
"native_ad_selectors": null,
|
||||
"tidy": false,
|
||||
"prune": false,
|
||||
"autodetect_on_failure": true,
|
||||
"single_page_link_selectors": null,
|
||||
"next_page_link_selectors": [
|
||||
"//div[@class=\"article-detail-btn-wrap article-detail-btn\"]/a"
|
||||
],
|
||||
"replace_strings": [
|
||||
[
|
||||
"\u003ch2",
|
||||
"\u003ch3"
|
||||
]
|
||||
],
|
||||
"http_headers": null,
|
||||
"tests": [
|
||||
{
|
||||
"url": "https://forbesjapan.com/articles/detail/85029",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://forbesjapan.com/articles/detail/86154",
|
||||
"contains": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"title_selectors": null,
|
||||
"body_selectors": null,
|
||||
"date_selectors": null,
|
||||
"author_selectors": null,
|
||||
"strip_selectors": [
|
||||
"//p[contains(@class, \"mt-1\")]"
|
||||
],
|
||||
"strip_id_or_class": [
|
||||
"relatedContent",
|
||||
"text-body-lg"
|
||||
],
|
||||
"strip_image_src": null,
|
||||
"native_ad_selectors": null,
|
||||
"tidy": false,
|
||||
"prune": false,
|
||||
"autodetect_on_failure": true,
|
||||
"single_page_link_selectors": null,
|
||||
"next_page_link_selectors": null,
|
||||
"replace_strings": null,
|
||||
"http_headers": null,
|
||||
"tests": [
|
||||
{
|
||||
"url": "https://jp.motorsport.com/super-formula/news/sf-r12-kobayashi-on-2026-season/10779252/#goog_rewarded",
|
||||
"contains": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"title_selectors": [
|
||||
"substring-before(//meta[@property='og:title']/@content , ' - Yahoo!ニュース')"
|
||||
],
|
||||
"body_selectors": [
|
||||
"//div[contains(concat(' ',normalize-space(@class),' '),' article_body ')]",
|
||||
"//div[@data-ual-view-type=\"detail\"]"
|
||||
],
|
||||
"date_selectors": null,
|
||||
"author_selectors": null,
|
||||
"strip_selectors": null,
|
||||
"strip_id_or_class": null,
|
||||
"strip_image_src": null,
|
||||
"native_ad_selectors": null,
|
||||
"tidy": false,
|
||||
"prune": false,
|
||||
"autodetect_on_failure": true,
|
||||
"single_page_link_selectors": null,
|
||||
"next_page_link_selectors": [
|
||||
"//a[@data-cl-params=\"_cl_vmodule:detail;_cl_link:prgrph;\"] | //a[@data-cl-params=\"_cl_vmodule:page;_cl_link:next;\"]"
|
||||
],
|
||||
"replace_strings": null,
|
||||
"http_headers": null,
|
||||
"tests": [
|
||||
{
|
||||
"url": "https://news.yahoo.co.jp/articles/6a461f63bef4fe1b6f994d822b75869142f9e856",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://news.yahoo.co.jp/articles/1092e226a2d958a11f89cff51519680743674e23",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://news.yahoo.co.jp/articles/285231e51d5f93d629f6434ec8658db1fc730473?page=1",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://news.yahoo.co.jp/expert/articles/17056029902372fe6e297e7801dfb913b3f45f1e",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://news.yahoo.co.jp/articles/e0a4d94cf10d8ed820b22d7431aa3946a2b3c763?page=1",
|
||||
"contains": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
],
|
||||
"date_selectors": null,
|
||||
"author_selectors": [
|
||||
"//meta[@name='author']/@content"
|
||||
"normalize-space(//p[contains(@class, 'next-list-author')]//a[@class='next-post-author'])"
|
||||
],
|
||||
"strip_selectors": [
|
||||
"//div[contains(@class, 'thumbnail-mobile')]",
|
||||
|
||||
@@ -1,19 +1,25 @@
|
||||
{
|
||||
"title_selectors": null,
|
||||
"title_selectors": [
|
||||
"//article[1]/h2[1]"
|
||||
],
|
||||
"body_selectors": [
|
||||
"//article[1]"
|
||||
"//main/section[1]/article[1]"
|
||||
],
|
||||
"date_selectors": null,
|
||||
"author_selectors": null,
|
||||
"strip_selectors": [
|
||||
"//h1[1]",
|
||||
"//article[1]/h2[1]",
|
||||
"//button",
|
||||
"//aside",
|
||||
"//img[contains(@src, '/14/')]"
|
||||
],
|
||||
"strip_id_or_class": [
|
||||
"tzi-bottom-container",
|
||||
"author-container",
|
||||
"meta-data-container",
|
||||
"is-hidden"
|
||||
"is-hidden",
|
||||
"tzi-bottom-container"
|
||||
],
|
||||
"strip_image_src": null,
|
||||
"native_ad_selectors": null,
|
||||
@@ -24,16 +30,16 @@
|
||||
"next_page_link_selectors": null,
|
||||
"replace_strings": [
|
||||
[
|
||||
"\u003cnoscript",
|
||||
"\u003cdiv"
|
||||
],
|
||||
[
|
||||
"\u003c/noscript\u003e",
|
||||
"\u003c/div\u003e"
|
||||
"noscript\u003e",
|
||||
"div\u003e"
|
||||
],
|
||||
[
|
||||
".jpeg \"",
|
||||
".jpeg\""
|
||||
],
|
||||
[
|
||||
"\u0026#xE80F",
|
||||
"✱"
|
||||
]
|
||||
],
|
||||
"http_headers": null,
|
||||
@@ -49,10 +55,6 @@
|
||||
{
|
||||
"url": "https://taz.de/!5708122",
|
||||
"contains": []
|
||||
},
|
||||
{
|
||||
"url": "https://taz.de/Ankommen-in-Deutschland-als-Gefluechtete/!6103413/",
|
||||
"contains": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"title_selectors": null,
|
||||
"body_selectors": [
|
||||
"//div[contains(concat(' ',normalize-space(@class),' '),' article-body-inner ')]"
|
||||
],
|
||||
"date_selectors": null,
|
||||
"author_selectors": [
|
||||
"//div[contains(concat(' ',normalize-space(@class),' '),' author-date ')]//div[contains(concat(' ',normalize-space(@class),' '),' author ')]"
|
||||
],
|
||||
"strip_selectors": null,
|
||||
"strip_id_or_class": [
|
||||
"article-end-authors",
|
||||
"article-box-gwrap",
|
||||
"author-follow-link",
|
||||
"m-tooltip-wrap"
|
||||
],
|
||||
"strip_image_src": null,
|
||||
"native_ad_selectors": null,
|
||||
"tidy": false,
|
||||
"prune": false,
|
||||
"autodetect_on_failure": true,
|
||||
"single_page_link_selectors": null,
|
||||
"next_page_link_selectors": [
|
||||
"//div[contains(@class, \"article-next-page\")]/a"
|
||||
],
|
||||
"replace_strings": null,
|
||||
"http_headers": null,
|
||||
"tests": [
|
||||
{
|
||||
"url": "https://toyokeizai.net/articles/-/912773",
|
||||
"contains": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user