add test cases from economist and caixin
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
{
|
||||
"title": "途虎养车港交所挂牌 腾讯为最大外部股东",
|
||||
"byline": "文|财新 余聪",
|
||||
"dir": null,
|
||||
"excerpt": "途虎养车 腾讯国内汽车服务市场高度分散,2022年,途虎养车取得汽车服务收入115亿元,市场份额0.9%",
|
||||
"siteName": "fakehost",
|
||||
"previewImage": "https://img.caixin.com/2023-09-26/169572084568190_560_373.jpg",
|
||||
"publishedDate": "2023-09-26T00:00:00.000Z",
|
||||
"language": "English",
|
||||
"readerable": true
|
||||
}
|
||||
45
packages/readabilityjs/test/test-pages/caixin/expected.html
Normal file
45
packages/readabilityjs/test/test-pages/caixin/expected.html
Normal file
@ -0,0 +1,45 @@
|
||||
<DIV class="page" id="readability-page-1">
|
||||
<div id="the_content">
|
||||
<div id="conTit">
|
||||
<h2> 途虎养车港交所挂牌 腾讯为最大外部股东 <img src="https://file.caixin.com/webchannel/all/img/icon_key.png">
|
||||
</h2>
|
||||
<!--baidu begin-->
|
||||
<!--baidu end-->
|
||||
<div id="artInfo">
|
||||
<!-- tt.s 12/17 -->
|
||||
<p> 文|财新 余聪 </p><!-- tt.e 12/17 -->
|
||||
<p> 2023年09月26日 17:22 </p>
|
||||
<!-- tt.s 12/17 来源于
|
||||
<a href=http://www.caixin.com target=_blank>财新网</a>
|
||||
tt.e 12/17-->
|
||||
<!-- 新版音频播放器代码 begin -->
|
||||
<!-- 新版音频播放器代码 end -->
|
||||
<p><img id="swit" height="26" src="http://file.caixin.com/images/content/PC.jpg"> 试听 </p>
|
||||
</div>
|
||||
<p> 国内汽车服务市场高度分散,2022年,途虎养车取得汽车服务收入115亿元,市场份额0.9% </p>
|
||||
</div>
|
||||
<div id="Main_Content_Val">
|
||||
<p> <b>【财新网】</b>9月26日,汽车服务平台<a href="https://s.ccxe.com.cn/entities/companies/202035144" target="_blank">途虎养车</a>正式在港交所主板挂牌上市。途虎养车( <a onclick="return false" href="http://fakehost/test/09690.HKM">09690.HK</a> )上市发行价为28港元/股,此前公司披露的发行价区间为28港元/股至31港元/股,即实际发行价为区间下限。当日,途虎养车收报29.5港元/股,较发行价涨5.36%,市值为239.6亿港元。 </p>
|
||||
<p> 途虎养车上市不易。途虎养车2022年1月即在港交所递表,2022年8月、2023年3月两次重新递交上市申请材料,终于在2023年8月23日通过聆讯。 </p>
|
||||
</div>
|
||||
<!--杂志购买 begin-->
|
||||
<!--全站公用文章页收费框碎片-->
|
||||
<div id="chargeWall">
|
||||
<p><img src="https://file.caixin.com/images/m/lineContent.png"></p>
|
||||
<p>登录 后获取已订阅的阅读权限 </p>
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
</div>
|
||||
<div id="pay-box">
|
||||
<p><img src="https://file.caixin.com/static/mh5/images/conponclose.png"></p>
|
||||
</div>
|
||||
<!--<script src="//file.caixin.com/pkg/cx-pay-layer/js/chunk-vendors.js"></script>-->
|
||||
<!--杂志购买 end-->
|
||||
<p> 推荐进入<a href="https://cxdata.caixin.com/index" target="_blank">财新数据库</a>,可随时查阅公司股价走势、结构人员变化等投资信息。 </p>
|
||||
<p> 责任编辑:屈运栩 | 版面编辑:刘潇(ZN028) </p>
|
||||
</div>
|
||||
</DIV>
|
||||
2268
packages/readabilityjs/test/test-pages/caixin/source.html
Normal file
2268
packages/readabilityjs/test/test-pages/caixin/source.html
Normal file
File diff suppressed because one or more lines are too long
1
packages/readabilityjs/test/test-pages/caixin/url.txt
Normal file
1
packages/readabilityjs/test/test-pages/caixin/url.txt
Normal file
@ -0,0 +1 @@
|
||||
https://www.caixin.com/2023-09-26/102112537.html
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"title": "Could the 14th Amendment bar Donald Trump from becoming president again?",
|
||||
"byline": null,
|
||||
"dir": null,
|
||||
"excerpt": "Some conservative legal scholars think so—but the idea is a long shot",
|
||||
"siteName": "The Economist",
|
||||
"siteIcon": "http://fakehost/favicon.ico",
|
||||
"previewImage": "https://www.economist.com/img/b/1280/720/90/media-assets/image/20230923_BLP505.jpg",
|
||||
"publishedDate": "2023-09-19T16:00:00.000Z",
|
||||
"language": "English",
|
||||
"readerable": true
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
<DIV class="page" id="readability-page-1">
|
||||
<div>
|
||||
<main role="main" id="content">
|
||||
<article data-test-id="NewArticle" id="new-article-template">
|
||||
<div data-test-id="standard-article-template">
|
||||
<section>
|
||||
<h2> Some conservative legal scholars think so—but the idea is a long shot </h2>
|
||||
</section>
|
||||
<section>
|
||||
<figure>
|
||||
<img alt="Donald Trump speaks on the stage at South Dakota Republican party rally in Rapid City" fetchpriority="high" width="1280" height="720" decoding="async" data-nimg="1" sizes="(min-width: 960px) 700px, 95vw" srcset="https://www.economist.com/cdn-cgi/image/width=360,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 360w, https://www.economist.com/cdn-cgi/image/width=384,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 384w, https://www.economist.com/cdn-cgi/image/width=480,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 480w, https://www.economist.com/cdn-cgi/image/width=600,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 600w, https://www.economist.com/cdn-cgi/image/width=834,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 834w, https://www.economist.com/cdn-cgi/image/width=960,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 960w, https://www.economist.com/cdn-cgi/image/width=1096,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 1096w, https://www.economist.com/cdn-cgi/image/width=1280,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 1280w, https://www.economist.com/cdn-cgi/image/width=1424,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg 1424w" src="https://www.economist.com/cdn-cgi/image/width=1424,quality=80,format=auto/content-assets/images/20230923_BLP505.jpg">
|
||||
<figcaption>
|
||||
<span>image: Reuters</span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</section>
|
||||
<div>
|
||||
<div data-body-id="cp2">
|
||||
<p data-component="paragraph">
|
||||
<span data-caps="initial">D</span><small>ONALD TRUMP’S</small> campaign for re-election is dogged with <a href="https://www.economist.com/the-economist-explains/2022/10/05/how-much-legal-jeopardy-is-donald-trump-in">legal woes</a>. The former president faces the prospect of <a href="https://www.economist.com/the-economist-explains/2023/09/06/a-primer-on-trumps-criminal-trials">four criminal trials</a> on felony charges, which will overlap with the Republican primary season and the general-election campaign. But another type of legal trouble could further complicate his return to the White House.
|
||||
</p>
|
||||
<p data-component="paragraph"> America’s constitution—which Mr Trump swore to uphold on January 20th 2017—includes a provision barring people who have taken such an oath from holding federal office if they have “engaged in insurrection or rebellion” against the country or “given aid or comfort to the enemies thereof”. This language, found in Section 3 of the 14th Amendment, was ratified after the civil war to prevent former Confederate rebels from having a hand in running the country they had tried to saw in half. The disqualification clause has seen something of a renaissance. A year ago, Couy Griffin, then a county commissioner in New Mexico, was removed from office by a state judge for engaging in insurrection at the Capitol on January 6th. But could this constitutional provision really thwart Mr Trump’s quest for a second presidential term? </p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span>The Economist today</span>
|
||||
</p>
|
||||
<h2> Handpicked stories, in your inbox </h2>
|
||||
<p> A daily newsletter with the best of our journalism </p>
|
||||
<div>
|
||||
<p><label for="marketing-preferences">Yes, I agree to receive exclusive content, offers and updates to products and services from The Economist Group. I can change these preferences at any time.</label>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
</DIV>
|
||||
1385
packages/readabilityjs/test/test-pages/economist/source.html
Normal file
1385
packages/readabilityjs/test/test-pages/economist/source.html
Normal file
File diff suppressed because one or more lines are too long
1
packages/readabilityjs/test/test-pages/economist/url.txt
Normal file
1
packages/readabilityjs/test/test-pages/economist/url.txt
Normal file
@ -0,0 +1 @@
|
||||
https://www.economist.com/the-economist-explains/2023/09/20/could-the-14th-amendment-bar-donald-trump-from-becoming-president-again
|
||||
Reference in New Issue
Block a user