yz-yuki-plugin 2.0.9-6 → 2.0.9-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,12 +12,13 @@ pushStatus: 1
12
12
  # ❀请勿设置周期过短比如小于10分钟,以免触发访问限制。
13
13
  checkDynamicCD: '*/23 * * * *'
14
14
 
15
- # 请求头 User-Agent 列表。请根据需要自行添加或修改。
15
+ # 请求头 User-Agent 列表。请根据需要自行添加或修改为搜索引擎爬虫所用UA。
16
16
  # 可设置多个请求头,每次重启后会随机选择一个。获取方法请浏览器自行搜索。
17
17
  userAgentList:
18
- - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
19
- #- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
20
- #- Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
18
+ - Mozilla/5.0(Linux;u;Android 4.2.2;zh-cn;) AppleWebKit/534.46 (KHTML,like Gecko) Version/5.1 Mobile Safari/10600.6.3 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
19
+ - Mozilla/5.0 (iPhone;CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko)Version/9.0 Mobile/13B143 Safari/601.1 (compatible; Baiduspider-render/2.0; +http://www.baidu.com/search/spider.html)
20
+ - Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36 Edg/143.0.0.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)
21
+ - Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
21
22
 
22
23
  # 筛选何时发布的动态,单位为秒,默认7200秒即2小时,即以当前时间为基准,筛选过去2小时内发布的动态,并推送。
23
24
  # 取值范围:3600-36000秒,即过去的1-10h。应大于checkDynamicCD的周期。
@@ -8,7 +8,7 @@ class BiliApi {
8
8
  this.USER_AGENT = BiliApi.BILIBILI_USER_AGENT;
9
9
  this.initialize();
10
10
  }
11
- static BILIBILI_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36';
11
+ static BILIBILI_USER_AGENT = 'Mozilla/5.0(Linux;u;Android 4.2.2;zh-cn;) AppleWebKit/534.46 (KHTML,like Gecko) Version/5.1 Mobile Safari/10600.6.3 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)';
12
12
  //初始化User-Agent
13
13
  async initialize() {
14
14
  await this.initUserAgent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yz-yuki-plugin",
3
- "version": "2.0.9-6",
3
+ "version": "2.0.9-7",
4
4
  "description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件",
5
5
  "author": "snowtafir",
6
6
  "type": "module",
@@ -108,7 +108,8 @@
108
108
  "yunzaijs"
109
109
  ],
110
110
  "publishConfig": {
111
- "registry": "https://registry.npmjs.org"
111
+ "registry": "https://registry.npmjs.org",
112
+ "tag": "next"
112
113
  },
113
114
  "engines": {
114
115
  "node": ">=20"