forked from duty-machine/duty-machine
-
Notifications
You must be signed in to change notification settings - Fork 30
/
run_test.rb
29 lines (20 loc) · 2.11 KB
/
run_test.rb
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
require './archiver'
# matters
p fetch_article('https://matters.news/@dunesworkshop/%E4%B8%AD%E6%96%87%E4%BA%92%E8%81%94%E7%BD%91%E4%B8%AD-%E8%AE%A8%E8%AE%BA-%E7%9A%84%E6%B6%88%E4%BA%A1-bafyreibmdo43v35az6rspj7ghypebxghoahcqg2crjxf4naditmfok5wzy')
# chinadigitaltimes
p fetch_article('https://chinadigitaltimes.net/chinese/2020/04/%e5%87%a4%e5%87%b0weekly-%e5%af%b9%e4%b8%8d%e8%b5%b7%ef%bc%8c%e7%bd%91%e4%b8%8a%e7%82%b9%e8%9c%a1%e7%83%9b%e6%95%91%e4%b8%8d%e4%ba%86%e6%b6%88%e9%98%b2%e5%91%98%e7%9a%84%e5%91%bd/')
# telegraph
p fetch_article('https://telegra.ph/%E8%B4%A2%E7%BB%8F%E5%8D%81%E4%B8%80%E4%BA%BA--%E4%B8%93%E8%AE%BF%E6%96%B9%E6%96%B9%E5%A6%82%E6%9E%9C%E6%88%91%E4%B8%8D%E4%BA%A4%E4%BB%A3%E8%B0%A3%E8%A8%80%E5%B0%B1%E6%B0%B8%E8%BF%9C%E6%B2%A1%E5%AE%8C-04-18')
# weixin
p fetch_article('http://mp.weixin.qq.com/s?__biz=Mzg4OTE2MzU1Ng==&mid=2247486095&idx=1&sn=98a427fc595b42cd804fd6ca8992f673&chksm=cff150c4f886d9d2b120b42379d1e4255d2f6e9bfbac7afc7a9c3fc712540220e6484d48c286&mpshare=1&scene=1&srcid=&sharer_sharetime=1586605001116&sharer_shareid=f467668849c8544e583567bf8a259f31#rd')
p fetch_article('https://mp.weixin.qq.com/s/xDKKicV22IBRGnNnNStOVg')
# weibo
p fetch_article('https://www.weibo.com/ttarticle/p/show?id=2309404443702348087422&sudaref=weibo.com&sudaref=login.sina.com.cn&display=0&retcode=6102&sudaref=passport.weibo.com&sudaref=passport.weibo.com')
# zhihu_zhuanlan
p fetch_article('https://zhuanlan.zhihu.com/p/115765034')
# dw
p fetch_article('https://www.dw.com/zh/%E4%B8%AD%E5%9B%BD%E7%BB%AD%E6%89%93%E5%8E%8B%E6%96%B0%E5%86%A0%E8%A8%80%E8%AE%BA-%E5%8C%97%E4%BA%AC%E4%B8%89%E5%BF%97%E6%84%BF%E8%80%85%E9%81%AD%E6%8D%95/a-53255271')
# scmp
p fetch_article('https://www.scmp.com/news/china/politics/article/3081569/chinese-activists-detained-after-sharing-censored-coronavirus')
# default article
p fetch_article('http://www.rfi.fr/cn/%E4%B8%AD%E5%9B%BD/20200426-%E7%96%91%E5%9B%A0%E5%A4%87%E4%BB%BD%E9%81%AD%E5%88%A0%E9%99%A4%E6%96%B0%E5%86%A0%E7%96%AB%E6%83%85%E6%8A%A5%E9%81%93-%E5%8C%97%E4%BA%AC3%E5%90%8D90%E5%90%8E2%E4%BA%BA%E9%81%AD%E6%8B%98%E6%8A%BC1%E4%BA%BA%E5%A4%B1%E8%81%94')