├── .github
└── workflows
│ ├── action.yml
│ └── cron.yml
├── .gitignore
├── README.md
├── index.js
├── package-lock.json
├── package.json
├── pnpm-lock.yaml
├── sample
├── rss.xml
└── validatorErr.xml
├── template
├── index.html
└── page.js
└── test.js
/.github/workflows/action.yml:
--------------------------------------------------------------------------------
1 | name: 'Lvv2.com Feed Bot'
2 |
3 | on:
4 | push:
5 | branches:
6 | - main
7 | schedule:
8 | - cron: ' 15 */2 * * * '
9 |
10 | jobs:
11 | feed-processor:
12 | name: Lvv2.com feed processor
13 | runs-on: ubuntu-latest
14 | steps:
15 | - name: Checkout
16 | uses: actions/checkout@v2
17 | - name: Setup Node.js
18 | uses: actions/setup-node@main
19 | with:
20 | node-version: '14'
21 | - name: Install dependencies
22 | run: npm install
23 | - name: Build RSS
24 | run: node index.js
25 | - name: Deploy to GitHub Pages
26 | uses: JamesIves/github-pages-deploy-action@3.7.1
27 | with:
28 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 | BRANCH: gh-pages # The branch the action should deploy to.
30 | FOLDER: dist # The folder the action should deploy.
31 | CLEAN: true # Automatically remove deleted files from the deploy branch
32 |
--------------------------------------------------------------------------------
/.github/workflows/cron.yml:
--------------------------------------------------------------------------------
1 | name: Vercel-cron
2 | on:
3 | push:
4 | branches:
5 | - main
6 | schedule:
7 | - cron: '5,35 * * * *'
8 | jobs:
9 | cron:
10 | runs-on: ubuntu-latest
11 | steps:
12 | - name: Call Vercel deploy webhook
13 | run: |
14 | curl -X POST ${{ secrets.VERCEL_HOOKS }}
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | https://lvv2-feed.vercel.app/
2 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | const Parser = require('rss-parser');
2 | const Feed = require('feed').Feed;
3 | const crypto = require('crypto');
4 | const fs = require('fs/promises');
5 | const process = require('process');
6 |
7 | //const FeedUrl = 'https://lvv2.com/rss';
8 | const FeedUrl = 'https://feeds.feedburner.com/lvv2-feed';
9 |
10 | function nameToLowerCase(name){
11 | if (name === 'PUBDATE') return 'pubDate';
12 | return name.toLowerCase();
13 | }
14 |
15 | let parser = new Parser({
16 | timeout: 3000,
17 | headers: {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 13_0_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15'},
18 | maxRedirects: 10,
19 | defaultRSS: 2.0,
20 | // customFields: {
21 | // item: [
22 | // ['pubDate', 'pubDate', {keepArray: true}]
23 | // ],
24 | // },
25 | xml2js: {
26 | tagNameProcessors: [nameToLowerCase],
27 | attrNameProcessors: [nameToLowerCase],
28 | strict: false,
29 | },
30 | });
31 |
32 | const newFeed = new Feed({
33 | title: 'Lvv2 Feed',
34 | description: 'Lvv2.com 的非官方 Feed',
35 | // link: 'https://ruanyf.github.io/lvv2-feed/',
36 | link: 'https://lvv2-feed.vercel.app/',
37 | language: 'zh-CN',
38 | generator: 'Lvv2 feed generator',
39 | feedLinks: {
40 | json: 'https://lvv2-feed.vercel.app/rss.json',
41 | rss: 'https://lvv2-feed.vercel.app/rss.xml'
42 | },
43 | });
44 |
45 | (async () => {
46 | let feed;
47 | try {
48 | feed = await parser.parseURL(FeedUrl);
49 | } catch (err) {
50 | throw err;
51 | }
52 |
53 | let count = 0;
54 |
55 | feed.items.forEach((item) => {
56 | let link = item.link;
57 |
58 | if (!link) return;
59 |
60 | if (link.includes('xn--')) return;
61 |
62 | if (link.length <= 27) {
63 | return;
64 | } else if (!link.includes('instant.lvv2.com')) {
65 | link = 'http://' + item.link.substr(27);
66 | }
67 |
68 | const hostname = (new URL(link)).hostname;
69 |
70 | const urlFilterArr =[
71 | 'www.bilibili.com/video/',
72 | 'weibo.com',
73 | 'm.weibo.cn',
74 | ];
75 | for (let n = 0; n < urlFilterArr.length; n++) {
76 | if (link.includes(urlFilterArr[n])) return;
77 | }
78 |
79 | const hostFilterArr = [
80 | 'acfun.cn',
81 | 'www.douban.com',
82 | 'm.douban.com',
83 | 'bilibili.com',
84 | 'meipin.im',
85 | 'video.weibo.com',
86 | 'video.h5.weibo.cn',
87 | 'weibointl.api.weibo.com',
88 | 't.cn',
89 | 'twitter.com',
90 | 'wap.newsmth.net',
91 | 'www.yystv.cn',
92 | 'youtu.be',
93 | ];
94 | if (hostFilterArr.includes(hostname)) return;
95 |
96 | if (hostname === 'www.voachinese.com') {
97 | link = link.replace('htmlutm', 'html?utm');
98 | }
99 |
100 | count = count + 1;
101 | if (count >= 100) return;
102 |
103 | let d = new Date(item.pubDate);
104 | // 原始时间为中国时区,如果服务器为国际时区,需要调整
105 | if (new Date().getTimezoneOffset() !== -480) {
106 | d = new Date(d.getTime() + (d.getTimezoneOffset() - 480) * 60000);
107 | }
108 |
109 | newFeed.addItem({
110 | title: item.title,
111 | id: crypto.createHash('md5').update(item.link).digest('hex'),
112 | link,
113 | content: '',
114 | date: d,
115 | });
116 | });
117 |
118 | try {
119 | await fs.rm('./dist', { recursive: true, force: true });
120 | console.log(`successfully deleted ./dist`);
121 | await fs.mkdir('./dist');
122 | console.log(`successfully create ./dist`);
123 | await fs.writeFile('./dist/rss.json', newFeed.json1());
124 | console.log(`successfully write rss.json`);
125 | await fs.writeFile('./dist/rss.xml', newFeed.rss2());
126 | console.log(`successfully write rss.xml`);
127 | await fs.copyFile('./template/index.html', `./dist/index.html`);
128 | await fs.copyFile('./template/page.js', `./dist/page.js`);
129 | console.log(`successfully copy asset files`);
130 | } catch (err) {
131 | throw err;
132 | }
133 |
134 | })().catch(err => {
135 | console.log(err);
136 | process.exit(1);
137 | });
138 |
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lvv2-feed",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "entities": {
8 | "version": "2.1.0",
9 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz",
10 | "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w=="
11 | },
12 | "feed": {
13 | "version": "4.2.1",
14 | "resolved": "https://registry.npmjs.org/feed/-/feed-4.2.1.tgz",
15 | "integrity": "sha512-l28KKcK1J/u3iq5dRDmmoB2p7dtBfACC2NqJh4dI2kFptxH0asfjmOfcxqh5Sv8suAlVa73gZJ4REY5RrafVvg==",
16 | "requires": {
17 | "xml-js": "^1.6.11"
18 | }
19 | },
20 | "rss-parser": {
21 | "version": "3.10.0",
22 | "resolved": "https://registry.npmjs.org/rss-parser/-/rss-parser-3.10.0.tgz",
23 | "integrity": "sha512-TC6FNvEmdFeaW6r/60MSJT7cp4d95X4M9As+mvNtxRx7YXHxpV95syMnWZthZSeD1BRN7SEKdq6c3nxMLQRopw==",
24 | "requires": {
25 | "entities": "^2.0.3",
26 | "xml2js": "^0.4.19"
27 | }
28 | },
29 | "sax": {
30 | "version": "1.2.4",
31 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
32 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
33 | },
34 | "xml-js": {
35 | "version": "1.6.11",
36 | "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz",
37 | "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==",
38 | "requires": {
39 | "sax": "^1.2.4"
40 | }
41 | },
42 | "xml2js": {
43 | "version": "0.4.23",
44 | "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz",
45 | "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==",
46 | "requires": {
47 | "sax": ">=0.6.0",
48 | "xmlbuilder": "~11.0.0"
49 | }
50 | },
51 | "xmlbuilder": {
52 | "version": "11.0.1",
53 | "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
54 | "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lvv2-feed",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "keywords": ["RSS"],
10 | "author": "Ruan Yifeng",
11 | "license": "MIT",
12 | "dependencies": {
13 | "feed": "^4.2.1",
14 | "rss-parser": "^3.10.0"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/pnpm-lock.yaml:
--------------------------------------------------------------------------------
1 | lockfileVersion: 5.3
2 |
3 | specifiers:
4 | feed: ^4.2.1
5 | rss-parser: ^3.10.0
6 |
7 | dependencies:
8 | feed: 4.2.2
9 | rss-parser: 3.12.0
10 |
11 | packages:
12 |
13 | /entities/2.2.0:
14 | resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}
15 | dev: false
16 |
17 | /feed/4.2.2:
18 | resolution: {integrity: sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==}
19 | engines: {node: '>=0.4.0'}
20 | dependencies:
21 | xml-js: 1.6.11
22 | dev: false
23 |
24 | /rss-parser/3.12.0:
25 | resolution: {integrity: sha512-aqD3E8iavcCdkhVxNDIdg1nkBI17jgqF+9OqPS1orwNaOgySdpvq6B+DoONLhzjzwV8mWg37sb60e4bmLK117A==}
26 | dependencies:
27 | entities: 2.2.0
28 | xml2js: 0.4.23
29 | dev: false
30 |
31 | /sax/1.2.4:
32 | resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==}
33 | dev: false
34 |
35 | /xml-js/1.6.11:
36 | resolution: {integrity: sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==}
37 | hasBin: true
38 | dependencies:
39 | sax: 1.2.4
40 | dev: false
41 |
42 | /xml2js/0.4.23:
43 | resolution: {integrity: sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==}
44 | engines: {node: '>=4.0.0'}
45 | dependencies:
46 | sax: 1.2.4
47 | xmlbuilder: 11.0.1
48 | dev: false
49 |
50 | /xmlbuilder/11.0.1:
51 | resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==}
52 | engines: {node: '>=4.0'}
53 | dev: false
54 |
--------------------------------------------------------------------------------
/sample/rss.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | https://Lvv2.com
7 | zh_CN
8 | 2020-12-13 12:31:04
9 | 2020-12-13 12:31:04
10 | Lvv2.com Generator
11 | 60
12 |
13 |
14 | https://Lvv2.com
15 | https://Lvv2.com/images/120.jpg
16 |
17 | -
18 |
19 | https://Lvv2.com/t/2764182/www.coolapk.com/feed/23451115shareKey=ZDY5ODdkNGVmOTg2NWZkNTU2MzI~
20 | 1
21 |
22 | 2020-12-13 12:25:02
23 |
24 | -
25 |
26 | https://Lvv2.com/t/2764155/bbs.tianya.cn/post-no20-690736-1.shtml
27 | 1
28 |
29 | 2020-12-13 12:10:01
30 |
31 | -
32 |
33 | https://Lvv2.com/t/2764120/user.guancha.cn/main/contentid=428838
34 | 1
35 |
36 | 2020-12-13 11:55:01
37 |
38 | -
39 |
40 | https://Lvv2.com/t/2764110/mp.weixin.qq.com/s/sB9jig5cPAuO3m10yI0Lqw
41 | 1
42 |
43 | 2020-12-13 11:50:01
44 |
45 | -
46 |
47 | https://Lvv2.com/t/2764077/mp.weixin.qq.com/s/aPp2fse5HdDHtSBdBlQB9w
48 | 1
49 |
50 | 2020-12-13 11:25:01
51 |
52 | -
53 |
54 | https://Lvv2.com/t/2764057/mp.weixin.qq.com/s/GWJMgWihnCy2E579JFwQ8A
55 | 1
56 |
57 | 2020-12-13 11:10:01
58 |
59 | -
60 |
61 | https://Lvv2.com/t/2764044/weibo.com/1802182725/Jyaw4erDe
62 | 1
63 |
64 | 2020-12-13 11:00:01
65 |
66 | -
67 |
68 | https://Lvv2.com/t/2764031/weibo.com/1757573407/JyaA2obWW
69 | 1
70 |
71 | 2020-12-13 10:50:01
72 |
73 | -
74 |
75 | https://Lvv2.com/t/2764001/mp.weixin.qq.com/s/scHnnhYOi9wxlZ8rEbWQQA
76 | 1
77 |
78 | 2020-12-13 10:35:01
79 |
80 | -
81 |
82 | https://Lvv2.com/t/2763992/news.hangzhou.com.cn/shxw/content/2020-12/13/content_7872463.html
83 | 1
84 |
85 | 2020-12-13 10:25:02
86 |
87 | -
88 |
89 | https://Lvv2.com/t/2763971/weibo.com/3473487440/Jyarw66Ni
90 | 1
91 |
92 | 2020-12-13 10:10:01
93 |
94 | -
95 |
96 | https://Lvv2.com/t/2763943/mp.weixin.qq.com/s/96O0UMSb_XLNfpdq_R9JsQ
97 | 1
98 |
99 | 2020-12-13 09:50:01
100 |
101 | -
102 |
105 | https://Lvv2.com/t/2763929/twitter.com/bbcchinese/status/1337925277620588549
106 | 1
107 | https://pbs.twimg.com/profile_images/1004638591308435457/tiacF_Yg_200x200.jpg
108 | BBC News 中文
109 |
111 | 2020-12-13 09:44:23
112 |
113 | -
114 |
115 | https://Lvv2.com/t/2763901/www.douban.com/group/topic/203185003/
116 | 1
117 |
118 | 2020-12-13 09:25:02
119 |
120 | -
121 |
122 | https://Lvv2.com/t/2763888/mp.weixin.qq.com/s/JS3UJWZCFwZc2oS8k86ukQ
123 | 1
124 |
125 | 2020-12-13 09:10:02
126 |
127 | -
128 |
129 | https://Lvv2.com/t/2763879/bbc.in/381gpgA
130 | 1
131 | BBC News 中文
132 |
133 | 2020-12-13 09:06:11
134 |
135 | -
136 |
137 | https://Lvv2.com/t/2763856/mp.weixin.qq.com/s/3vrFL1T9OrqkhZWy4M3oYg
138 | 1
139 |
140 | 2020-12-13 08:50:01
141 |
142 | -
143 |
144 | https://Lvv2.com/t/2763846/www.qlwb.com.cn/detail/14310431.html
145 | 1
146 |
147 | 2020-12-13 08:45:01
148 |
149 | -
150 |
151 | https://Lvv2.com/t/2763829/k.sina.com.cn/article_5597555064_14da3e97801900tjrq.htmlfrom=ent&subch=oent
152 | 1
153 |
154 | 2020-12-13 08:30:01
155 |
156 | -
157 |
158 | https://Lvv2.com/t/2763825/news.cnwest.com/tianxia/a/2020/12/12/19361732.html
159 | 1
160 |
161 | 2020-12-13 08:25:02
162 |
163 | -
164 |
165 | https://Lvv2.com/t/2763803/www.chinanews.com/cj/2020/12-13/9360879.shtml
166 | 1
167 |
168 | 2020-12-13 08:10:02
169 |
170 | -
171 |
172 | https://Lvv2.com/t/2763779/wap.newsmth.net/article/3cfb8faaff18007358372e5bf4ee8949
173 | 1
174 |
175 | 2020-12-13 07:50:02
176 |
177 | -
178 |
179 | https://Lvv2.com/t/2763737/mp.weixin.qq.com/s/feh_ZK_QMmOFDehjttu4aA
180 | 1
181 |
182 | 2020-12-13 07:10:02
183 |
184 | -
185 |
186 | https://Lvv2.com/t/2763705/mp.weixin.qq.com/s/o0lJvECUw6NqCtkrd7fEYg
187 | 1
188 |
189 | 2020-12-13 06:45:01
190 |
191 | -
192 |
193 | https://Lvv2.com/t/2763660/www.bilibili.com/video/BV13A41147nm
194 | 1
195 |
196 | 2020-12-13 06:10:01
197 |
198 | -
199 |
200 | https://Lvv2.com/t/2763586/www.thepaper.cn/newsDetail_forward_9884728
201 | 1
202 |
203 | 2020-12-13 05:10:01
204 |
205 | -
206 |
207 | https://Lvv2.com/t/2763504/mp.weixin.qq.com/s/6BWn_HSLsH6UppOyMlmdmA
208 | 1
209 |
210 | 2020-12-13 04:10:01
211 |
212 | -
213 |
214 | https://Lvv2.com/t/2763420/www.allnow.com/post/5fd3374db96d232650aab0b8
215 | 1
216 |
217 | 2020-12-13 03:10:01
218 |
219 | -
220 |
221 | https://Lvv2.com/t/2763255/www.gcores.com/articles/131623
222 | 1
223 |
224 | 2020-12-13 01:10:01
225 |
226 | -
227 |
228 | https://Lvv2.com/t/2763196/www.bilibili.com/video/BV1p54y1v7pb
229 | 1
230 |
231 | 2020-12-13 00:35:01
232 |
233 | -
234 |
235 | https://Lvv2.com/t/2763155/www.eeo.com.cn/2020/1211/444759.shtml
236 | 1
237 |
238 | 2020-12-13 00:10:02
239 |
240 | -
241 |
242 | https://Lvv2.com/t/2763129/bbc.in/37cswbK
243 | 1
244 | BBC News 中文
245 |
246 | 2020-12-12 23:46:33
247 |
248 | -
249 |
250 | https://Lvv2.com/t/2763116/video.weibo.com/showfid=1034:4581399299031158
251 | 1
252 |
253 | 2020-12-12 23:35:02
254 |
255 | -
256 |
257 | https://Lvv2.com/t/2763074/mp.weixin.qq.com/s/tQfMIgDimBUJ9ivWhjt90g
258 | 1
259 |
260 | 2020-12-12 23:10:01
261 |
262 | -
263 |
264 | https://Lvv2.com/t/2763038/www.jiemian.com/article/5393875.html
265 | 1
266 |
267 | 2020-12-12 22:50:01
268 |
269 | -
270 |
271 | https://Lvv2.com/t/2762994/mp.weixin.qq.com/s/SSaejNtpPcbAxIE81Z9kdw
272 | 1
273 |
274 | 2020-12-12 22:25:02
275 |
276 | -
277 |
278 | https://Lvv2.com/t/2762976/video.weibo.com/showfid=1034:4581344055853086
279 | 1
280 |
281 | 2020-12-12 22:10:02
282 |
283 | -
284 |
285 | https://Lvv2.com/t/2762942/mp.weixin.qq.com/s/pFFmmcSnKXbDcTZ5vTQ0iQ
286 | 1
287 |
288 | 2020-12-12 21:50:02
289 |
290 | -
291 |
292 | https://Lvv2.com/t/2762907/video.h5.weibo.cn/1034:4581365337751562/4581366220202877
293 | 1
294 |
295 | 2020-12-12 21:25:01
296 |
297 | -
298 |
299 | https://Lvv2.com/t/2762888/www.nbd.com.cn/articles/2020-12-12/1570425.html
300 | 1
301 |
302 | 2020-12-12 21:10:02
303 |
304 | -
305 |
306 | https://Lvv2.com/t/2762866/mp.weixin.qq.com/s/kJyRR8KT1qialuxHFTuiew
307 | 1
308 |
309 | 2020-12-12 20:50:01
310 |
311 | -
312 |
314 | https://Lvv2.com/t/2762829/bbc.in/38bq7xh
315 | 1
316 | BBC News 中文
317 |
318 | 2020-12-12 20:24:33
319 |
320 | -
321 |
322 | https://Lvv2.com/t/2762807/mp.weixin.qq.com/s/rCU5piZESZQQYTKwP4W9ow
323 | 1
324 |
325 | 2020-12-12 20:10:02
326 |
327 | -
328 |
329 | https://Lvv2.com/t/2762767/m.weibo.cn/status/4581317524329295
330 | 1
331 |
332 | 2020-12-12 19:50:02
333 |
334 | -
335 |
336 | https://Lvv2.com/t/2762739/mp.weixin.qq.com/s/J9JCv0t2fn4KDTbQaloEHg
337 | 1
338 |
339 | 2020-12-12 19:25:01
340 |
341 | -
342 |
344 | https://Lvv2.com/t/2762712/nyti.ms/2K2RNvw
345 | 1
346 | 纽约时报中文网
347 |
348 | 2020-12-12 18:56:11
349 |
350 | -
351 |
352 | https://Lvv2.com/t/2762702/mp.weixin.qq.com/s/BDBV7Hq448W5kdl9QN5zgg
353 | 1
354 |
355 | 2020-12-12 18:50:01
356 |
357 | -
358 |
363 | https://Lvv2.com/t/2762672/twitter.com/bbcchinese/status/1337683640067760129
364 | 1
365 | https://pbs.twimg.com/profile_images/1004638591308435457/tiacF_Yg_200x200.jpg
366 | BBC News 中文
367 |
369 | 2020-12-12 18:36:12
370 |
371 | -
372 |
373 | https://Lvv2.com/t/2762671/weibo.com/tv/show/1034:4581039813623885from=old_pc_videoshow
374 | 1
375 |
376 | 2020-12-12 18:35:01
377 |
378 | -
379 |
380 | https://Lvv2.com/t/2762661/wallstreetcn.com/articles/3613292
381 | 1
382 |
383 | 2020-12-12 18:25:01
384 |
385 | -
386 |
387 | https://Lvv2.com/t/2762635/www.tmtpost.com/4890197.html
388 | 1
389 |
390 | 2020-12-12 18:10:02
391 |
392 | -
393 |
395 | https://Lvv2.com/t/2762632/bbc.in/37aTQHi
396 | 1
397 | BBC News 中文
398 |
399 | 2020-12-12 18:06:54
400 |
401 | -
402 |
403 | https://Lvv2.com/t/2762584/mp.weixin.qq.com/s/NTY_LVQ7Lv_LrZlNVilalg
404 | 1
405 |
406 | 2020-12-12 17:25:01
407 |
408 | -
409 |
410 | https://Lvv2.com/t/2762564/mp.weixin.qq.com/s/ob39C3afAzgc3oWhCLjioQ
411 | 1
412 |
413 | 2020-12-12 17:10:01
414 |
415 | -
416 |
417 | https://Lvv2.com/t/2762530/weibo.com/5137664568/Jy6VYAcT7
418 | 1
419 |
420 | 2020-12-12 16:35:01
421 |
422 | -
423 |
424 | https://Lvv2.com/t/2762514/mp.weixin.qq.com/s/yoIur7Okx1y5K9WS_FvZiA
425 | 1
426 |
427 | 2020-12-12 16:25:01
428 |
429 | -
430 |
431 | https://Lvv2.com/t/2762490/www.cb.com.cn/index/show/dsx/cv/cv1332661276
432 | 1
433 |
434 | 2020-12-12 16:10:02
435 |
436 | -
437 |
438 | https://Lvv2.com/t/2762085/nyti.ms/3n33h13
439 | 2
440 | 纽约时报中文网
441 |
442 | 2020-12-12 11:58:33
443 |
444 | -
445 |
446 | https://Lvv2.com/t/2762421/www.guancha.cn/internation/2020_12_12_574328.shtml
447 | 1
448 |
449 | 2020-12-12 15:25:02
450 |
451 | -
452 |
453 | https://Lvv2.com/t/2762383/mp.weixin.qq.com/s/hbffYYQy9AsoX7Wcocxsrg
454 | 1
455 |
456 | 2020-12-12 14:50:02
457 |
458 | -
459 |
460 | https://Lvv2.com/t/2762340/www.guokr.com/article/458902/
461 | 1
462 |
463 | 2020-12-12 14:25:01
464 |
465 | -
466 |
470 | https://Lvv2.com/t/2762316/bbc.in/3oJRhlw
471 | 1
472 | BBC News 中文
473 |
474 | 2020-12-12 14:10:12
475 |
476 | -
477 |
478 | https://Lvv2.com/t/2762315/mp.weixin.qq.com/s/oYWaosf_lth0h07LODNRRA
479 | 1
480 |
481 | 2020-12-12 14:10:01
482 |
483 | -
484 |
485 | https://Lvv2.com/t/2762303/www.bjnews.com.cn/detail/160775187515205.html
486 | 1
487 |
488 | 2020-12-12 14:00:02
489 |
490 | -
491 |
492 | https://Lvv2.com/t/2762281/www.guancha.cn/internation/2020_12_12_574331.shtml
493 | 1
494 |
495 | 2020-12-12 13:50:01
496 |
497 | -
498 |
499 | https://Lvv2.com/t/2762245/m.21jingji.com/article/20201212/herald/d941d11be6cfc4c6e3301aeb13cf03bf.html
500 | 1
501 |
502 | 2020-12-12 13:25:01
503 |
504 | -
505 |
506 | https://Lvv2.com/t/2762205/www.3dmgame.com/news/202012/3804034.html
507 | 1
508 |
509 | 2020-12-12 13:10:02
510 |
511 | -
512 |
513 | https://Lvv2.com/t/2762172/36kr.com/p/1004189019476997
514 | 1
515 |
516 | 2020-12-12 12:50:01
517 |
518 | -
519 |
520 | https://Lvv2.com/t/2762160/www.bjnews.com.cn/detail/160773994815030.html
521 | 1
522 |
523 | 2020-12-12 12:45:01
524 |
525 | -
526 |
527 | https://Lvv2.com/t/2762125/www.tmtpost.com/4888965.html
528 | 1
529 |
530 | 2020-12-12 12:25:01
531 |
532 | -
533 |
534 | https://Lvv2.com/t/2762107/new.qq.com/omn/20201211/20201211A04IQ500.html
535 | 1
536 |
537 | 2020-12-12 12:10:02
538 |
539 | -
540 |
541 | https://Lvv2.com/t/2762016/m.21jingji.com/article/20201212/herald/c4409edc87bfe5598fb330a04002120d.html
542 | 1
543 |
544 | 2020-12-12 11:25:01
545 |
546 | -
547 |
548 | https://Lvv2.com/t/2761976/bbc.in/3a12eLd
549 | 1
550 | BBC News 中文
551 |
552 | 2020-12-12 11:02:11
553 |
554 | -
555 |
556 | https://Lvv2.com/t/2761952/video.h5.weibo.cn/1034:4581063297531934/4581065736068210
557 | 1
558 |
559 | 2020-12-12 10:50:01
560 |
561 | -
562 |
563 | https://Lvv2.com/t/2761902/www.ce.cn/xwzx/gnsz/gdxw/202012/12/t20201212_36108589.shtml
564 | 1
565 |
566 | 2020-12-12 10:25:01
567 |
568 | -
569 |
571 | https://Lvv2.com/t/2761891/bbc.in/375Urd1
572 | 1
573 | BBC News 中文
574 |
575 | 2020-12-12 10:18:11
576 |
577 | -
578 |
579 | https://Lvv2.com/t/2761877/mp.weixin.qq.com/s/uI1-v8sUpRR3weXoMIo4QQ
580 | 1
581 |
582 | 2020-12-12 10:10:01
583 |
584 | -
585 |
586 | https://Lvv2.com/t/2761848/weibo.com/tv/show/1034:4581043034849388from=old_pc_videoshow
587 | 1
588 |
589 | 2020-12-12 09:50:01
590 |
591 | -
592 |
593 | https://Lvv2.com/t/2761803/mp.weixin.qq.com/s/wtNo0KQmHdWkv-gzm81dNg
594 | 1
595 |
596 | 2020-12-12 09:25:02
597 |
598 | -
599 |
600 | https://Lvv2.com/t/2761775/new.qq.com/omn/20201212/20201212A01KQX00.html
601 | 1
602 |
603 | 2020-12-12 09:10:01
604 |
605 | -
606 |
607 | https://Lvv2.com/t/2761733/www.cnbeta.com/articles/tech/1064867.htm
608 | 1
609 |
610 | 2020-12-12 08:50:01
611 |
612 | -
613 |
614 | https://Lvv2.com/t/2761681/www.bilibili.com/video/BV1KA411s7h7
615 | 1
616 |
617 | 2020-12-12 08:25:01
618 |
619 | -
620 |
621 | https://Lvv2.com/t/2761651/mp.weixin.qq.com/s__biz=MzA5MjM4MTM3OA==&mid=2651768416&idx=1&sn=8cdda62dfb39bdd956a63b3393d99ade&chksm=8b946fcdbce3e6db37a1dc148c24a430c484d376a88f608e9ab12e4edae98c000847868132a0&token=360509066&lang=zh_CN#rd
622 | 1
623 |
624 | 2020-12-12 08:10:02
625 |
626 | -
627 |
628 | https://Lvv2.com/t/2761624/book.douban.com/review/13041762/
629 | 1
630 |
631 | 2020-12-12 07:50:01
632 |
633 | -
634 |
635 | https://Lvv2.com/t/2761598/www.allnow.com/post/5fd36e7bc84b905ab2b38acc
636 | 1
637 |
638 | 2020-12-12 07:25:01
639 |
640 | -
641 |
642 | https://Lvv2.com/t/2761570/www.ifanr.com/1385476
643 | 1
644 |
645 | 2020-12-12 07:10:01
646 |
647 | -
648 |
649 | https://Lvv2.com/t/2761534/mp.weixin.qq.com/s/QMny0gfnSQpGnjJoGXPZ4Q
650 | 1
651 |
652 | 2020-12-12 06:35:01
653 |
654 | -
655 |
656 | https://Lvv2.com/t/2761505/www.sohu.com/a/437442094_120146415
657 | 1
658 |
659 | 2020-12-12 06:10:01
660 |
661 | -
662 |
663 | https://Lvv2.com/t/2761432/mp.weixin.qq.com/s/wrzynlw92rRGo528hZItVg
664 | 1
665 |
666 | 2020-12-12 05:10:01
667 |
668 | -
669 |
670 | https://Lvv2.com/t/2761364/www.xiaoyuzhoufm.com/episode/5fd2a2bfdee9c1e16ddd089e
671 | 1
672 |
673 | 2020-12-12 04:20:01
674 |
675 | -
676 |
677 | https://Lvv2.com/t/2761280/mp.weixin.qq.com/s/IS-ukGVR61IinYC-7ChXZQ
678 | 1
679 |
680 | 2020-12-12 03:10:01
681 |
682 | -
683 |
684 | https://Lvv2.com/t/2761242/nyti.ms/2IDucRT
685 | 1
686 | 纽约时报中文网
687 |
688 | 2020-12-12 02:36:12
689 |
690 | -
691 |
692 | https://Lvv2.com/t/2761212/mp.weixin.qq.com/s/81dtwM2UJ7UCBjFYeGW8Ug
693 | 1
694 |
695 | 2020-12-12 02:10:01
696 |
697 | -
698 |
703 | https://Lvv2.com/t/2761175/twitter.com/bbcchinese/status/1337336589509398530
704 | 1
705 | https://pbs.twimg.com/profile_images/1004638591308435457/tiacF_Yg_200x200.jpg
706 | BBC News 中文
707 |
709 | 2020-12-12 01:32:11
710 |
711 | -
712 |
713 | https://Lvv2.com/t/2761147/www.yicai.com/news/100874178.html
714 | 1
715 |
716 | 2020-12-12 01:10:02
717 |
718 | -
719 |
720 | https://Lvv2.com/t/2761099/user.guancha.cn/main/contentid=428101
721 | 1
722 |
723 | 2020-12-12 00:35:01
724 |
725 | -
726 |
727 | https://Lvv2.com/t/2761063/mp.weixin.qq.com/s/Kw1sgkydasERCwDdZHNlMQ
728 | 1
729 |
730 | 2020-12-12 00:10:01
731 |
732 | -
733 |
734 | https://Lvv2.com/t/2761025/mp.weixin.qq.com/s/ujqBoGs2ihWLI2kQWJrVJA
735 | 1
736 |
737 | 2020-12-11 23:35:01
738 |
739 | -
740 |
741 | https://Lvv2.com/t/2760994/video.weibo.com/showfid=1034:4580330942693472
742 | 1
743 |
744 | 2020-12-11 23:10:01
745 |
746 | -
747 |
748 | https://Lvv2.com/t/2760969/www.thepaper.cn/newsDetail_forward_10344861
749 | 1
750 |
751 | 2020-12-11 22:50:01
752 |
753 |
754 |
--------------------------------------------------------------------------------
/sample/validatorErr.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | https://Lvv2.com
7 | zh_CN
8 | 2021-11-16 10:07:49
9 | 2021-11-16 10:07:49
10 | Lvv2.com Generator
11 | 60
12 |
13 |
14 | https://Lvv2.com
15 | https://Lvv2.com/images/120.jpg
16 |
17 | -
18 |
19 | https://instant.lvv2.com/html/0aba1eed065bb30f33418d9c1e295238.html
20 | 1
21 |
22 | 2021-11-16 10:00:32
23 |
24 | -
25 |
26 | https://Lvv2.com/t/3407158/weibo.com/tv/show/1034:4703863467606086from=old_pc_videoshow
27 | 1
28 |
29 | 2021-11-16 09:48:11
30 |
31 | -
32 |
35 | https://instant.lvv2.com/html/2d4cee845e716b9e6ebed18406921d52.html
36 | 1
37 | https://pbs.twimg.com/profile_images/1339778536920399875/2f6-n9eo_200x200.jpg
38 | 豆瓣精选
39 |
40 | 2021-11-16 09:38:51
41 |
42 | -
43 |
44 | https://instant.lvv2.com/html/f666cc5b7686775bbeb06d42ac7fd2bf.html
45 | 1
46 |
47 | 2021-11-16 09:32:32
48 |
49 | -
50 |
51 | https://instant.lvv2.com/html/37a4cc3e43dbaad8c51381dda9fb419f.html
52 | 1
53 |
54 | 2021-11-16 09:16:11
55 |
56 | -
57 |
58 | https://instant.lvv2.com/html/30c298d51fbf15eb626605eb4b9da05d.html
59 | 1
60 |
61 | 2021-11-16 09:00:11
62 |
63 | -
64 |
65 | https://instant.lvv2.com/html/75574c2a906192ff6a434385881a8971.html
66 | 1
67 |
68 | 2021-11-16 08:48:11
69 |
70 | -
71 |
72 | https://Lvv2.com/t/3407006/video.weibo.com/showfid=1034:4703531878514757
73 | 1
74 |
75 | 2021-11-16 08:32:11
76 |
77 | -
78 |
80 | https://instant.lvv2.com/html/58647cf542513ddc67eda9dc09fd92b0.html
81 | 1
82 | https://pbs.twimg.com/profile_images/936152865067827200/IZwOyNDN_200x200.jpg
83 | 日经中文网
84 |
85 | 2021-11-16 08:24:41
86 |
87 | -
88 |
89 | https://instant.lvv2.com/html/d1fa736edba27359c6ccbf903f9402c0.html
90 | 1
91 |
92 | 2021-11-16 08:16:31
93 |
94 | -
95 |
96 | https://instant.lvv2.com/html/19d3121940281a9d9eebd276056f8eb0.html
97 | 1
98 |
99 | 2021-11-16 08:00:22
100 |
101 | -
102 |
103 | https://instant.lvv2.com/html/2249d34e9fb5b725a7653824d40b33f9.html
104 | 1
105 |
106 | 2021-11-16 07:40:11
107 |
108 | -
109 |
110 | https://instant.lvv2.com/html/6802ae6c35bade5f0c3d1cfb6ac642b8.html
111 | 1
112 |
113 | 2021-11-16 07:24:11
114 |
115 | -
116 |
117 | https://instant.lvv2.com/html/efaa17c5c7c2d6e821c8db599acc0818.html
118 | 1
119 |
120 | 2021-11-16 07:00:11
121 |
122 | -
123 |
124 | https://instant.lvv2.com/html/b7a7907e7a4194a5abd32dd8674f96d3.html
125 | 1
126 |
127 | 2021-11-16 06:32:21
128 |
129 | -
130 |
131 | https://Lvv2.com/t/3406209/weibo.com/tv/show/1034:4703907939811361from=old_pc_videoshow
132 | 4
133 |
134 | 2021-11-15 23:00:11
135 |
136 | -
137 |
138 | https://instant.lvv2.com/html/f90afb467bee1a626bb85bfcd3e69af8.html
139 | 1
140 |
141 | 2021-11-16 06:00:11
142 |
143 | -
144 |
145 | https://instant.lvv2.com/html/f45e4d7d90143233327d461d5d8b492d.html
146 | 1
147 |
148 | 2021-11-16 05:00:11
149 |
150 | -
151 |
152 | https://instant.lvv2.com/html/73f8b138955e45ee751a23dc02a67d35.html
153 | 1
154 |
155 | 2021-11-16 04:00:11
156 |
157 | -
158 |
159 | https://instant.lvv2.com/html/e0e993cf5fb8b509925dbf243ea04261.html
160 | 1
161 |
162 | 2021-11-16 03:00:11
163 |
164 | -
165 |
166 | https://Lvv2.com/t/3406168/m.weibo.cn/detail/4703864794646481
167 | 2
168 |
169 | 2021-11-15 22:40:11
170 |
171 | -
172 |
173 | https://instant.lvv2.com/html/2d71ca4519d1d2c0f89d4c949f49d428.html
174 | 1
175 |
176 | 2021-11-16 02:00:11
177 |
178 | -
179 |
180 | https://instant.lvv2.com/html/74ab738901a3de0dda0c7f0b01342fcc.html
181 | 1
182 |
183 | 2021-11-16 01:00:32
184 |
185 | -
186 |
187 | https://instant.lvv2.com/html/e11214ef62825534ae6b1b2f214a6b51.html
188 | 1
189 |
190 | 2021-11-16 00:00:11
191 |
192 | -
193 |
194 | https://instant.lvv2.com/html/663d21fe1f9b327feed8207a591520f9.html
195 | 1
196 |
197 | 2021-11-15 23:33:11
198 |
199 | -
200 |
201 | https://Lvv2.com/t/3406155/news.haiwainet.cn/n/2021/1115/c3541093-32273880.html
202 | 1
203 |
204 | 2021-11-15 22:32:11
205 |
206 | -
207 |
208 | https://Lvv2.com/t/3406088/www.toutiao.com/a7030657648047751716/
209 | 1
210 |
211 | 2021-11-15 22:00:11
212 |
213 | -
214 |
215 | https://instant.lvv2.com/html/26108a2c5ea2398312e7e2d611414bfc.html
216 | 1
217 |
218 | 2021-11-15 21:40:22
219 |
220 | -
221 |
222 | https://instant.lvv2.com/html/d8dfe64d4db6eb6dbf3139be815d1f11.html
223 | 1
224 |
225 | 2021-11-15 21:40:11
226 |
227 | -
228 |
229 | https://Lvv2.com/t/3405367/www.douyin.com/video/7029992686874594563
230 | 3
231 |
232 | 2021-11-15 15:24:11
233 |
234 | -
235 |
236 | https://instant.lvv2.com/html/d1000a6c96de5ccea2934bf1d6695837.html
237 | 1
238 |
239 | 2021-11-15 20:48:11
240 |
241 | -
242 |
243 | https://instant.lvv2.com/html/d6842b8b168721e2e1471ced6460fd7f.html
244 | 1
245 |
246 | 2021-11-15 20:32:11
247 |
248 | -
249 |
250 | https://instant.lvv2.com/html/6743e696389cd9d949a62c7938692777.html
251 | 1
252 |
253 | 2021-11-15 20:16:11
254 |
255 | -
256 |
257 | https://instant.lvv2.com/html/b2ba36641cd9b2042df23e4583f1bf0b.html
258 | 1
259 |
260 | 2021-11-15 20:00:21
261 |
262 | -
263 |
268 | https://instant.lvv2.com/html/0f665f39231a9a4ad666b26f0fc65285.html
269 | 1
270 | https://pbs.twimg.com/profile_images/1164398616020017153/bRbhIW4l_200x200.jpg
271 | 链闻 ChainNews
272 |
273 | 2021-11-15 19:52:11
274 |
275 | -
276 |
277 | https://instant.lvv2.com/html/d7a3c9a27a408ec93f845566ac362af7.html
278 | 1
279 |
280 | 2021-11-15 19:49:21
281 |
282 | -
283 |
284 | https://Lvv2.com/t/3405802/www.zhitongcaijing.com/content/detail/602084.html
285 | 1
286 |
287 | 2021-11-15 19:32:11
288 |
289 | -
290 |
291 | https://instant.lvv2.com/html/bb3c36fb9c01a3fb16c4e9c4907a685f.html
292 | 1
293 |
294 | 2021-11-15 19:16:11
295 |
296 | -
297 |
298 | https://instant.lvv2.com/html/f30f4763c7b28535166601932147583d.html
299 | 1
300 |
301 | 2021-11-15 19:00:32
302 |
303 | -
304 |
305 | https://instant.lvv2.com/html/b249dc5aa3cf62393b2ec9810b010058.html
306 | 1
307 |
308 | 2021-11-15 18:48:12
309 |
310 | -
311 |
312 | https://instant.lvv2.com/html/8d752f3340b0ac56d4808dea3a54e348.html
313 | 1
314 |
315 | 2021-11-15 18:32:11
316 |
317 | -
318 |
319 | https://instant.lvv2.com/html/40dd949e9fea61e4cd981b86249bbf2c.html
320 | 1
321 |
322 | 2021-11-15 18:16:11
323 |
324 | -
325 |
326 | https://instant.lvv2.com/html/b915f062663dfd063bd834b0fe1e9797.html
327 | 1
328 |
329 | 2021-11-15 18:08:22
330 |
331 | -
332 |
333 | https://instant.lvv2.com/html/7ba4702cbcf965295aabdf20fbd36769.html
334 | 1
335 |
336 | 2021-11-15 18:08:11
337 |
338 | -
339 |
340 | https://instant.lvv2.com/html/960d2cd8edd876e06e8949743fa59c4a.html
341 | 1
342 | https://pbs.twimg.com/media/FEOaLFuaAAEIoYL?format=jpg&name=medium
343 |
344 | 2021-11-15 18:00:11
345 |
346 | -
347 |
348 | https://instant.lvv2.com/html/c3ea31ee7c66c03f4f659048dd1ac47a.html
349 | 3
350 |
351 | 2021-11-15 11:56:31
352 |
353 | -
354 |
355 | https://Lvv2.com/t/3405595
356 | 1
357 |
358 | 2021-11-15 17:40:11
359 |
360 | -
361 |
362 | https://instant.lvv2.com/html/5e4b78e21c6e2687cab8be7c7ef399c8.html
363 | 1
364 | https://pbs.twimg.com/profile_images/963709224466374656/W7eiSwd9_200x200.jpg
365 | 纽约时报中文网
366 |
367 | 2021-11-15 17:28:11
368 |
369 | -
370 |
371 | https://instant.lvv2.com/html/322d257ba24a972dbaa605e30d78e8d1.html
372 | 1
373 |
374 | 2021-11-15 17:24:11
375 |
376 | -
377 |
378 | https://instant.lvv2.com/html/a66069d953d2afd4ecb882fef3574779.html
379 | 1
380 |
381 | 2021-11-15 17:16:52
382 |
383 | -
384 |
385 | https://instant.lvv2.com/html/98e9da22a1cc199cb1098241286d068c.html
386 | 1
387 | https://pbs.twimg.com/profile_images/1858536295/CDTdarkblue2_200x200.png
388 | 中国数字时代
389 |
391 | 2021-11-15 17:00:22
392 |
393 | -
394 |
395 | https://instant.lvv2.com/html/1278e33e0933e0961165401a2be53a81.html
396 | 1
397 |
398 | 2021-11-15 17:00:11
399 |
400 | -
401 |
402 | https://instant.lvv2.com/html/7d839e89b8c65645a2278d280facb547.html
403 | 1
404 |
405 | 2021-11-15 16:56:11
406 |
407 | -
408 |
409 | https://Lvv2.com/t/3405501/m.weibo.cn/2095858834/4703782590481776
410 | 1
411 |
412 | 2021-11-15 16:40:11
413 |
414 | -
415 |
416 | https://instant.lvv2.com/html/627fa5480c30c6a7ae626fc6baf83e1c.html
417 | 1
418 |
419 | 2021-11-15 16:32:11
420 |
421 | -
422 |
423 | https://Lvv2.com/t/3405480
424 | 1
425 |
426 | 2021-11-15 16:24:41
427 |
428 | -
429 |
430 | https://instant.lvv2.com/html/541ec61f35a3c82b5cc1efa2722b882f.html
431 | 1
432 |
433 | 2021-11-15 16:16:32
434 |
435 | -
436 |
437 | https://instant.lvv2.com/html/69bb7a1e5607dc919becd4f4d9ff629c.html
438 | 1
439 |
440 | 2021-11-15 15:56:11
441 |
442 | -
443 |
444 | https://instant.lvv2.com/html/3f258999cfd2f9b21dff0d80f751914d.html
445 | 1
446 |
447 | 2021-11-15 15:40:31
448 |
449 | -
450 |
451 | https://instant.lvv2.com/html/a92729466700cfc1c4e39c2d0f767d0d.html
452 | 1
453 |
454 | 2021-11-15 15:32:41
455 |
456 | -
457 |
458 | https://instant.lvv2.com/html/d4c71570c61cd8ea7b960be6e0932eea.html
459 | 1
460 |
461 | 2021-11-15 15:17:11
462 |
463 | -
464 |
465 | https://instant.lvv2.com/html/98fab835ce65d20264b67be03143afb8.html
466 | 1
467 |
468 | 2021-11-15 15:00:21
469 |
470 | -
471 |
472 | https://Lvv2.com/t/3405277/www.aicaijing.com.cn/article/10427
473 | 1
474 |
475 | 2021-11-15 14:56:11
476 |
477 | -
478 |
479 | https://Lvv2.com/t/3405241/www.icsmart.cn/49222/
480 | 1
481 |
482 | 2021-11-15 14:40:21
483 |
484 | -
485 |
486 | https://Lvv2.com/t/3405219
487 | 1
488 |
489 | 2021-11-15 14:32:11
490 |
491 | -
492 |
493 | https://instant.lvv2.com/html/f6a9fd60b476958bffbc255a1910f852.html
494 | 1
495 |
496 | 2021-11-15 14:24:11
497 |
498 | -
499 |
500 | https://instant.lvv2.com/html/8b045268b2a24c99cea2e5cd002b6295.html
501 | 1
502 |
503 | 2021-11-15 14:16:11
504 |
505 | -
506 |
507 | https://instant.lvv2.com/html/9d6003a6d1c613589d9f7f699f22910e.html
508 | 3
509 |
510 | 2021-11-15 08:16:21
511 |
512 | -
513 |
515 | https://instant.lvv2.com/html/93650eb50f9d1d30d63233e66cec513e.html
516 | 1
517 | https://pbs.twimg.com/profile_images/1004638591308435457/tiacF_Yg_200x200.jpg
518 | BBC News 中文
519 |
520 | 2021-11-15 14:04:42
521 |
522 | -
523 |
524 | https://instant.lvv2.com/html/276a53c7d97094dd834f1fc1cd76ba3c.html
525 | 1
526 |
527 | 2021-11-15 14:00:22
528 |
529 | -
530 |
531 | https://instant.lvv2.com/html/3a3e0dd9b76c21b2dce4389713a8be8d.html
532 | 1
533 |
534 | 2021-11-15 13:40:11
535 |
536 | -
537 |
538 | https://instant.lvv2.com/html/4812a28adb596f274568ac641105ffe5.html
539 | 1
540 |
541 | 2021-11-15 13:32:11
542 |
543 | -
544 |
545 | https://instant.lvv2.com/html/18655073e143e9bb40ea4d0c570aaabf.html
546 | 1
547 |
548 | 2021-11-15 13:24:11
549 |
550 | -
551 |
552 | https://instant.lvv2.com/html/55399656aeb8ade7d353ca27a10c00b6.html
553 | 1
554 |
555 | 2021-11-15 13:16:11
556 |
557 | -
558 |
559 | https://instant.lvv2.com/html/a15f8446903b8630a0809fe0ade2bb55.html
560 | 1
561 |
562 | 2021-11-15 13:00:11
563 |
564 | -
565 |
566 | https://instant.lvv2.com/html/1368b39d1968f30ce53fe66069bc8d66.html
567 | 1
568 |
569 | 2021-11-15 12:56:11
570 |
571 | -
572 |
573 | https://instant.lvv2.com/html/70d8be0953a72747deec1e439297b11f.html
574 | 1
575 |
576 | 2021-11-15 12:40:11
577 |
578 | -
579 |
580 | https://instant.lvv2.com/html/73abaaeba0fe7f5ca9d0524cd7bc5178.html
581 | 1
582 |
583 | 2021-11-15 12:32:11
584 |
585 | -
586 |
587 | https://instant.lvv2.com/html/fc761239747d666b267f9e3a34e88446.html
588 | 1
589 |
590 | 2021-11-15 12:24:11
591 |
592 | -
593 |
594 | https://instant.lvv2.com/html/960e205b2b1200b6e5c009e543ad672a.html
595 | 1
596 |
597 | 2021-11-15 12:16:11
598 |
599 | -
600 |
601 | https://instant.lvv2.com/html/a893ad0518197ba78363ceb81f9fc612.html
602 | 1
603 |
604 | 2021-11-15 12:00:21
605 |
606 | -
607 |
609 | https://instant.lvv2.com/html/260ca0de6726cc0d3278956c5f96beab.html
610 | 1
611 | https://pbs.twimg.com/profile_images/936152865067827200/IZwOyNDN_200x200.jpg
612 | 日经中文网
613 |
614 | 2021-11-15 11:44:11
615 |
616 | -
617 |
618 | https://instant.lvv2.com/html/2067a02a077be19657d1fd6c4e1cabc1.html
619 | 1
620 |
621 | 2021-11-15 11:40:51
622 |
623 | -
624 |
625 | https://Lvv2.com/t/3404864/bbs.hupu.com/46163850.html
626 | 1
627 |
628 | 2021-11-15 11:32:21
629 |
630 | -
631 |
632 | https://instant.lvv2.com/html/dfb8952f217325f60f51f85304dfcfe4.html
633 | 1
634 |
635 | 2021-11-15 11:24:21
636 |
637 | -
638 |
639 | https://instant.lvv2.com/html/b10fb733acc7cf7fad18482deeffd299.html
640 | 1
641 |
642 | 2021-11-15 11:16:11
643 |
644 | -
645 |
646 | https://instant.lvv2.com/html/31acf23a50538aee8acb8c6a5edaeaca.html
647 | 1
648 |
649 | 2021-11-15 11:00:12
650 |
651 | -
652 |
655 | https://instant.lvv2.com/html/2916753b4fbac6de4830e6fd21fed843.html
656 | 1
657 | https://pbs.twimg.com/profile_images/1339778536920399875/2f6-n9eo_200x200.jpg
658 | 豆瓣精选
659 |
664 | 2021-11-15 10:58:11
665 |
666 | -
667 |
668 | https://instant.lvv2.com/html/62809c417e1624aceff73001f2df85ef.html
669 | 1
670 |
671 | 2021-11-15 10:56:11
672 |
673 | -
674 |
675 | https://instant.lvv2.com/html/c97059dfc47ed19f7c00ae031e618a3f.html
676 | 1
677 |
678 | 2021-11-15 10:40:11
679 |
680 | -
681 |
682 | https://instant.lvv2.com/html/c790a11fcba255297967653d2d011788.html
683 | 1
684 |
685 | 2021-11-15 10:32:11
686 |
687 | -
688 |
689 | https://instant.lvv2.com/html/4cfa895e6c9f9d50360c8937465976da.html
690 | 1
691 |
692 | 2021-11-15 10:24:11
693 |
694 | -
695 |
696 | https://Lvv2.com/t/3404715/m.weibo.cn/detail/4703696212985153
697 | 1
698 |
699 | 2021-11-15 10:16:52
700 |
701 | -
702 |
704 | https://instant.lvv2.com/html/814daafc369ab2dd8a2875472c8e4993.html
705 | 1
706 | https://pbs.twimg.com/profile_images/1004638591308435457/tiacF_Yg_200x200.jpg
707 | BBC News 中文
708 |
709 | 2021-11-15 10:12:41
710 |
711 | -
712 |
713 | https://instant.lvv2.com/html/ae97d6900fbd2242c70f77d48b242da1.html
714 | 1
715 |
716 | 2021-11-15 10:00:11
717 |
718 | -
719 |
720 | https://instant.lvv2.com/html/9e3410cf8edbe9bdaeeaab8f7706f896.html
721 | 1
722 |
723 | 2021-11-15 09:48:11
724 |
725 | -
726 |
727 | https://instant.lvv2.com/html/02360bb795bba459adfcfafbd73fcfa4.html
728 | 1
729 |
730 | 2021-11-15 09:16:11
731 |
732 | -
733 |
734 | https://instant.lvv2.com/html/3a65d058728ba6012aa0d200f5d5e04f.html
735 | 1
736 |
737 | 2021-11-15 09:00:46
738 |
739 | -
740 |
741 | https://instant.lvv2.com/html/b6617fb55a98ab696e2990a5998b371d.html
742 | 1
743 |
744 | 2021-11-15 08:48:12
745 |
746 | -
747 |
748 | https://Lvv2.com/t/3404497
749 | 1
750 |
751 | 2021-11-15 08:32:21
752 |
753 |
754 |
--------------------------------------------------------------------------------
/template/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Lvv2 Feed
7 |
8 |
9 |
17 |
18 |
19 |
20 |
21 |
22 | 最新内容
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/template/page.js:
--------------------------------------------------------------------------------
1 | fetch('./rss.json')
2 | .then(async function (response) {
3 | const res = await response.json();
4 | const items = res.items;
5 |
6 | const list = document.querySelector('.list');
7 |
8 | items.forEach(i => {
9 | const li = document.createElement('li');
10 | const p = document.createElement('p');
11 | const host = (new URL(i.url)).hostname;
12 | p.innerHTML = `${i.title}(${timeStr(i.date_modified)})`;
13 | li.appendChild(p);
14 | list.appendChild(li);
15 | });
16 | })
17 |
18 | function timeStr(dateStr) {
19 | try {
20 | const d = new Date(dateStr);
21 | return d.toLocaleString('zh-CN', {
22 | dateStyle: 'short',
23 | timeStyle: 'short',
24 | hour12: false
25 | });
26 | } catch(e) {
27 | return '';
28 | }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/test.js:
--------------------------------------------------------------------------------
1 | const Parser = require('rss-parser');
2 | const Feed = require('feed').Feed;
3 | const crypto = require('crypto');
4 | const fs = require('fs/promises');
5 | const process = require('process');
6 |
7 | const FeedUrl = './sample/rss-new.xml'; // 'https://lvv2.com/rss';
8 |
9 | let parser = new Parser({
10 | timeout: 15000,
11 | headers: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10130'},
12 | maxRedirects: 5,
13 | });
14 | /*
15 | const newFeed = new Feed({
16 | title: 'Lvv2 Feed',
17 | description: 'Lvv2.com 的非官方 Feed',
18 | // link: 'https://ruanyf.github.io/lvv2-feed/',
19 | link: 'https://lvv2-feed.vercel.app/',
20 | language: 'zh-CN',
21 | generator: 'Lvv2 feed generator',
22 | feedLinks: {
23 | json: 'https://lvv2-feed.vercel.app/rss.json',
24 | rss: 'https://lvv2-feed.vercel.app/rss.xml'
25 | },
26 | });
27 | */
28 | (async () => {
29 | let feed;
30 | try {
31 | feed = await parser.parseURL(FeedUrl);
32 | } catch (err) {
33 | throw err;
34 | }
35 |
36 |
37 | feed.items.forEach((item) => {
38 | let link = item.link;
39 |
40 | if (!link) return;
41 |
42 | if (link.length <= 27) {
43 | return;
44 | } else if (!link.includes('instant.lvv2.com')) {
45 | link = 'http://' + item.link.substr(27);
46 | }
47 |
48 | const hostname = (new URL(link)).hostname;
49 |
50 | const urlFilterArr =[
51 | 'www.bilibili.com/video/',
52 | 'weibo.com',
53 | 'm.weibo.cn',
54 | ];
55 | for (let n = 0; n < urlFilterArr.length; n++) {
56 | if (link.includes(urlFilterArr[n])) return;
57 | }
58 |
59 | const hostFilterArr = [
60 | 'acfun.cn',
61 | 'bilibili.com',
62 | 'meipin.im',
63 | 'video.weibo.com',
64 | 'video.h5.weibo.cn',
65 | 'weibointl.api.weibo.com',
66 | 't.cn',
67 | 'twitter.com',
68 | 'wap.newsmth.net',
69 | 'www.yystv.cn',
70 | 'youtu.be',
71 | ];
72 | if (hostFilterArr.includes(hostname)) return;
73 |
74 | link = link.replace('contentid', 'content?id');
75 |
76 | newFeed.addItem({
77 | title: item.title,
78 | id: crypto.createHash('md5').update(item.link).digest('hex'),
79 | link,
80 | content: '',
81 | date: new Date(item.pubDate),
82 | });
83 | });
84 |
85 | try {
86 | await fs.rmdir('./dist', { recursive: true});
87 | console.log(`successfully deleted ./dist`);
88 | await fs.mkdir('./dist');
89 | console.log(`successfully create ./dist`);
90 | await fs.writeFile('./dist/rss.json', newFeed.json1());
91 | console.log(`successfully write rss.json`);
92 | await fs.writeFile('./dist/rss.xml', newFeed.rss2());
93 | console.log(`successfully write rss.xml`);
94 | await fs.copyFile('./template/index.html', `./dist/index.html`);
95 | await fs.copyFile('./template/page.js', `./dist/page.js`);
96 | console.log(`successfully copy asset files`);
97 | } catch (err) {
98 | throw err;
99 | }
100 |
101 | })().catch(err => {
102 | console.log(err);
103 | process.exit(1);
104 | });
105 |
--------------------------------------------------------------------------------