feat: update files

pull/206/head
Yi Liu 2 years ago
parent f76322dae3
commit d98d7189da
  1. 10
      README.md
  2. 98
      data/abnormal-websites.json
  3. 335
      data/normal-websites.json
  4. 60
      src/main/java/com.lilittlecat/freechatgpt/Build.java
  5. 6
      src/main/java/com.lilittlecat/freechatgpt/Feature.java

@ -106,7 +106,7 @@
- [ 🆓 ][https://www.promptboom.com](https://www.promptboom.com/) - 2023-04-24
- [ 🆓 ][https://w.betai55.uk/](https://w.betai55.uk/) - 2023-04-26 - 密码 pub04-23Xs67AErn454
- [ 🆓 ][https://d2.betai55.uk/](https://d2.betai55.uk/) - 2023-05-25 - 密码 586-484-535D
- [ 🆓 ][https://x1.xjai.cc](https://x1.xjai.cc/) - 2023-04-27
@ -164,7 +164,7 @@
- [ 🆓 ] [https://vvanglro.eu.org/](https://vvanglro.eu.org) - 2023-05-23
- [ 🆓 ] [https://1chat.c3r.ink/](https://1chat.c3r.ink/) - 2023-05-24
- [ 🔐 ] [https://www.sweetsai.com/](https://www.sweetsai.com/) - 2023-05-24
- [ 🆓📚 ] [https://home.xiamis.xyz/](https://home.xiamis.xyz/) - 2023-05-24
- [ 🆓📚 ] [https://home.xiamis.xyz/](https://home.xiamis.xyz/) - 2023-05-24 - 免费 GPT3.5 和绘画
---
@ -304,9 +304,11 @@
<!-- abnormal-begin -->
- ~~[ 🆓 ][https://1chat.cc](https://1chat.cc)~~ - 2023-05-04 - 2023-05-24
- ~~[ 🆓 ][https://w.betai55.uk/](https://w.betai55.uk/)~~ - 2023-05-25
- ~~[ 🆓🔔 ] [http://www.tdchatd.us](http://www.tdchatd.us/)~~ - 2023-04-20 - 2023-05-05
- ~~[ 🆓 ][https://1chat.cc](https://1chat.cc)~~ - 2023-05-24
- ~~[ 🆓🔔 ] [http://www.tdchatd.us](http://www.tdchatd.us/)~~ - 2023-05-05
- ~~[https://gpt.gpt0.icu](https://gpt.gpt0.icu)~~ - 2023-04-28

@ -5,18 +5,18 @@
"description":null,
"extraInfo":null,
"features":null,
"id":2,
"id":1,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":"2023-04-28",
"reportedInvalidDate":"2023-05-25",
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://gpt.gpt0.icu"
"url":"https://w.betai55.uk/"
},
{
"addedDate":null,
@ -24,18 +24,18 @@
"description":null,
"extraInfo":null,
"features":null,
"id":3,
"id":2,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":"2023-04-21",
"reportedInvalidDate":"2023-05-24",
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat2.zhuleixx.top/"
"url":"https://1chat.cc"
},
{
"addedDate":null,
@ -43,11 +43,11 @@
"description":null,
"extraInfo":null,
"features":null,
"id":1,
"id":3,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":"2023-04-20",
"reportedInvalidDate":"2023-05-05",
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
@ -66,6 +66,44 @@
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":"2023-04-28",
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://gpt.gpt0.icu"
},
{
"addedDate":null,
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":5,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":"2023-04-21",
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat2.zhuleixx.top/"
},
{
"addedDate":null,
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":6,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":"2023-04-20",
"reportedInvalidReason":null,
"score":null,
@ -81,7 +119,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":5,
"id":7,
"labels":null,
"lang":null,
"previewUrl":null,
@ -100,7 +138,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":6,
"id":8,
"labels":null,
"lang":null,
"previewUrl":null,
@ -119,7 +157,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":7,
"id":9,
"labels":null,
"lang":null,
"previewUrl":null,
@ -138,7 +176,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":8,
"id":10,
"labels":null,
"lang":null,
"previewUrl":null,
@ -157,7 +195,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":9,
"id":11,
"labels":null,
"lang":null,
"previewUrl":null,
@ -176,7 +214,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":10,
"id":12,
"labels":null,
"lang":null,
"previewUrl":null,
@ -195,7 +233,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":14,
"id":16,
"labels":null,
"lang":null,
"previewUrl":null,
@ -214,7 +252,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":11,
"id":13,
"labels":null,
"lang":null,
"previewUrl":null,
@ -233,7 +271,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":12,
"id":14,
"labels":null,
"lang":null,
"previewUrl":null,
@ -252,7 +290,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":13,
"id":15,
"labels":null,
"lang":null,
"previewUrl":null,
@ -271,7 +309,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":15,
"id":17,
"labels":null,
"lang":null,
"previewUrl":null,
@ -290,7 +328,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":18,
"id":20,
"labels":null,
"lang":null,
"previewUrl":null,
@ -309,7 +347,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":19,
"id":21,
"labels":null,
"lang":null,
"previewUrl":null,
@ -328,7 +366,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":21,
"id":23,
"labels":null,
"lang":null,
"previewUrl":null,
@ -347,7 +385,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":24,
"id":26,
"labels":null,
"lang":null,
"previewUrl":null,
@ -366,7 +404,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":26,
"id":28,
"labels":null,
"lang":null,
"previewUrl":null,
@ -385,7 +423,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":16,
"id":18,
"labels":null,
"lang":null,
"previewUrl":null,
@ -404,7 +442,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":17,
"id":19,
"labels":null,
"lang":null,
"previewUrl":null,
@ -423,7 +461,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":20,
"id":22,
"labels":null,
"lang":null,
"previewUrl":null,
@ -442,7 +480,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":22,
"id":24,
"labels":null,
"lang":null,
"previewUrl":null,
@ -461,7 +499,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":23,
"id":25,
"labels":null,
"lang":null,
"previewUrl":null,
@ -480,7 +518,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":25,
"id":27,
"labels":null,
"lang":null,
"previewUrl":null,

@ -41,7 +41,7 @@
"x-powered-by": "Next.js"
}
},
"features":null,
"features":["FREE","GPT4_SUPPORTED"],
"id":1,
"labels":null,
"lang":"en",
@ -649,8 +649,8 @@
"url":"https://www.promptboom.com/"
},
{
"addedDate":"2023-04-26",
"customDescription":"密码 pub04-23Xs67AErn454\r",
"addedDate":"2023-05-25",
"customDescription":"密码 586-484-535D",
"description":null,
"extraInfo":null,
"features":null,
@ -665,7 +665,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://w.betai55.uk/"
"url":"https://d2.betai55.uk/"
},
{
"addedDate":"2023-04-27",
@ -763,7 +763,7 @@
"url":"https://chatgpt.hz-it-dev.com/"
},
{
"addedDate":"2023-05-04",
"addedDate":"2023-05-06",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -779,7 +779,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://1chat.cc"
"url":"https://tubogpt.vercel.app"
},
{
"addedDate":"2023-05-06",
@ -798,7 +798,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://tubogpt.vercel.app"
"url":"http://207.148.94.37:7860/"
},
{
"addedDate":"2023-05-06",
@ -817,7 +817,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"http://207.148.94.37:7860/"
"url":"https://seven-star.org/"
},
{
"addedDate":"2023-05-06",
@ -836,10 +836,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://seven-star.org/"
"url":"https://ai.hxkj.vip"
},
{
"addedDate":"2023-05-06",
"addedDate":"2023-05-07",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -855,10 +855,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://ai.hxkj.vip"
"url":"https://gpt.opengpt88.com"
},
{
"addedDate":"2023-05-07",
"addedDate":"2023-05-09",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -874,7 +874,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://gpt.opengpt88.com"
"url":"https://chat.aidutu.cn"
},
{
"addedDate":"2023-05-09",
@ -893,10 +893,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat.aidutu.cn"
"url":"https://chat.bk8787.com"
},
{
"addedDate":"2023-05-09",
"addedDate":"2023-05-10",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -912,7 +912,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat.bk8787.com"
"url":"https://chatgpt.dreamtrend.net/"
},
{
"addedDate":"2023-05-10",
@ -931,7 +931,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chatgpt.dreamtrend.net/"
"url":"http://1.15.134.164:999/"
},
{
"addedDate":"2023-05-10",
@ -950,10 +950,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"http://1.15.134.164:999/"
"url":"https://chat.wenwen-ai.com"
},
{
"addedDate":"2023-05-10",
"addedDate":"2023-05-11",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -969,7 +969,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat.wenwen-ai.com"
"url":"https://chat.ok2ai.com/"
},
{
"addedDate":"2023-05-11",
@ -988,10 +988,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat.ok2ai.com/"
"url":"https://gpt.uziai.com/"
},
{
"addedDate":"2023-05-11",
"addedDate":"2023-05-15",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -1007,10 +1007,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://gpt.uziai.com/"
"url":"https://1919abc.com"
},
{
"addedDate":"2023-05-15",
"addedDate":"2023-05-17",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -1026,11 +1026,11 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://1919abc.com"
"url":"https://aiget.cc/"
},
{
"addedDate":"2023-05-17",
"customDescription":null,
"customDescription":"GPT4 的兑换码:TRYGPT4",
"description":null,
"extraInfo":null,
"features":null,
@ -1045,11 +1045,11 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://aiget.cc/"
"url":"https://chat.zhenbs.com/"
},
{
"addedDate":"2023-05-17",
"customDescription":"GPT4 的兑换码:TRYGPT4\r",
"customDescription":"设置中输入访问密码 857857",
"description":null,
"extraInfo":null,
"features":null,
@ -1064,11 +1064,11 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat.zhenbs.com/"
"url":"http://chat1.manongzyg.one/"
},
{
"addedDate":"2023-05-17",
"customDescription":"设置中输入访问密码 857857\r",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
@ -1083,10 +1083,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"http://chat1.manongzyg.one/"
"url":"https://aiia.chat/"
},
{
"addedDate":"2023-05-17",
"addedDate":"2023-05-18",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -1102,11 +1102,11 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://aiia.chat/"
"url":"https://chataibase.com/"
},
{
"addedDate":"2023-05-18",
"customDescription":null,
"customDescription":"永久发布页:https://gpt.lovebaby.today/",
"description":null,
"extraInfo":null,
"features":null,
@ -1121,11 +1121,11 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chataibase.com/"
"url":"https://srgfdfsf.xiaowenzi.xyz/"
},
{
"addedDate":"2023-05-18",
"customDescription":"永久发布页:https://gpt.lovebaby.today/\r",
"addedDate":"2023-05-19",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
@ -1140,7 +1140,7 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://srgfdfsf.xiaowenzi.xyz/"
"url":"https://1.nb8.ltd/"
},
{
"addedDate":"2023-05-19",
@ -1159,10 +1159,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://1.nb8.ltd/"
"url":"https://chat.v50.ltd"
},
{
"addedDate":"2023-05-19",
"addedDate":"2023-05-22",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -1178,10 +1178,10 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://chat.v50.ltd"
"url":"https://www.openaicloud.cloud/"
},
{
"addedDate":"2023-04-28",
"addedDate":"2023-05-22",
"customDescription":null,
"description":null,
"extraInfo":null,
@ -1197,6 +1197,139 @@
"status":null,
"title":null,
"updatedDate":null,
"url":"https://aitxt.io/"
},
{
"addedDate":"2023-05-22",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":60,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":null,
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://ai.icodebug.xyz/"
},
{
"addedDate":"2023-05-22",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":61,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":null,
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://gpts.dawu.world"
},
{
"addedDate":"2023-05-23",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":62,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":null,
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://vvanglro.eu.org"
},
{
"addedDate":"2023-05-24",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":63,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":null,
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://1chat.c3r.ink/"
},
{
"addedDate":"2023-05-24",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":64,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":null,
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://www.sweetsai.com/"
},
{
"addedDate":"2023-05-24",
"customDescription":"免费 GPT3.5 和绘画",
"description":null,
"extraInfo":null,
"features":null,
"id":65,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":null,
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://home.xiamis.xyz/"
},
{
"addedDate":"2023-04-28",
"customDescription":null,
"description":null,
"extraInfo":null,
"features":null,
"id":66,
"labels":null,
"lang":null,
"previewUrl":null,
"reportedInvalidDate":null,
"reportedInvalidReason":null,
"score":null,
"sourceInfo":null,
"status":null,
"title":null,
"updatedDate":null,
"url":"https://index.chat.bnu120.space"
},
{
@ -1205,7 +1338,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":60,
"id":67,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1224,7 +1357,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":61,
"id":68,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1243,7 +1376,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":62,
"id":69,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1262,7 +1395,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":63,
"id":70,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1281,7 +1414,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":64,
"id":71,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1300,7 +1433,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":65,
"id":72,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1319,7 +1452,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":66,
"id":73,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1338,7 +1471,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":67,
"id":74,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1357,7 +1490,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":68,
"id":75,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1376,7 +1509,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":69,
"id":76,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1395,7 +1528,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":70,
"id":77,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1414,7 +1547,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":71,
"id":78,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1433,7 +1566,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":72,
"id":79,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1452,7 +1585,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":73,
"id":80,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1471,7 +1604,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":74,
"id":81,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1490,7 +1623,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":75,
"id":82,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1509,7 +1642,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":76,
"id":83,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1528,7 +1661,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":77,
"id":84,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1547,7 +1680,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":78,
"id":85,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1566,7 +1699,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":79,
"id":86,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1585,7 +1718,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":80,
"id":87,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1604,7 +1737,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":81,
"id":88,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1623,7 +1756,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":82,
"id":89,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1642,7 +1775,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":83,
"id":90,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1661,7 +1794,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":84,
"id":91,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1680,7 +1813,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":85,
"id":92,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1699,7 +1832,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":86,
"id":93,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1718,7 +1851,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":87,
"id":94,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1737,7 +1870,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":88,
"id":95,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1756,7 +1889,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":89,
"id":96,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1775,7 +1908,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":90,
"id":97,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1794,7 +1927,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":91,
"id":98,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1813,7 +1946,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":92,
"id":99,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1832,7 +1965,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":93,
"id":100,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1851,7 +1984,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":94,
"id":101,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1870,7 +2003,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":95,
"id":102,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1889,7 +2022,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":96,
"id":103,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1908,7 +2041,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":97,
"id":104,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1927,7 +2060,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":98,
"id":105,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1946,7 +2079,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":99,
"id":106,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1965,7 +2098,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":100,
"id":107,
"labels":null,
"lang":null,
"previewUrl":null,
@ -1984,7 +2117,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":101,
"id":108,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2003,7 +2136,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":102,
"id":109,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2022,7 +2155,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":103,
"id":110,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2041,7 +2174,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":104,
"id":111,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2060,7 +2193,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":105,
"id":112,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2079,7 +2212,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":106,
"id":113,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2098,7 +2231,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":107,
"id":114,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2117,7 +2250,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":108,
"id":115,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2136,7 +2269,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":109,
"id":116,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2155,7 +2288,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":110,
"id":117,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2174,7 +2307,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":111,
"id":118,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2193,7 +2326,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":112,
"id":119,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2212,7 +2345,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":113,
"id":120,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2231,7 +2364,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":114,
"id":121,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2250,7 +2383,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":115,
"id":122,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2269,7 +2402,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":116,
"id":123,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2288,7 +2421,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":117,
"id":124,
"labels":null,
"lang":null,
"previewUrl":null,
@ -2307,7 +2440,7 @@
"description":null,
"extraInfo":null,
"features":null,
"id":118,
"id":125,
"labels":null,
"lang":null,
"previewUrl":null,

@ -22,11 +22,14 @@ import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static com.lilittlecat.freechatgpt.Feature.*;
public class Build {
public static void main(String[] args) throws TemplateException, IOException {
Build build = new Build();
build.init();
build.initNormal();
build.initAbnormal();
// build.update();
}
@ -41,19 +44,41 @@ public class Build {
String abnormalWebsitesJSONString = FileUtil.readString(abnormalWebsitesJSON, StandardCharsets.UTF_8);
List<Website> abnormalWebsitesJSONArray = JSON.parseArray(abnormalWebsitesJSONString, Website.class);
Website website = normalWebsitesJSONArray.get(0);
List<Feature> features = new ArrayList<>();
features.add(FREE);
features.add(GPT4_SUPPORTED);
website.setFeatures(features);
website.setScore(Feature.score(features));
System.out.println(JSON.toJSONString(website));
// Configuration cfg = new Configuration(Configuration.VERSION_2_3_32);
// FileTemplateLoader templateLoader = new FileTemplateLoader(new File(basePath + File.separator + "src" + File.separator + "main" + File.separator + "resources"));
// cfg.setTemplateLoader(templateLoader);
//
//// cfg.setClassForTemplateLoading(Website.class, basePath + File.separator + "src" + File.separator + "main" + File.separator + "resources");
// cfg.setDefaultEncoding("UTF-8");
// Template template = cfg.getTemplate("normal-websites-table.ftl");
//
// Map<String, Object> model = new HashMap<>();
// model.put("websites", normalWebsites);
//
// StringWriter out = new StringWriter();
// template.process(model, out);
//
// String renderedHtml = out.toString();
// System.out.println(renderedHtml);
}
public void init() throws IOException, TemplateException {
public void initNormal() {
String basePath = System.getProperty("user.dir");
String readmeFilePath = basePath + File.separator + "README.md";
File file = new File(readmeFilePath);
String readContent = FileUtil.readString(file, StandardCharsets.UTF_8);
String normalSitesContent = StrUtil.subBetween(readContent, "<!-- normal-begin -->", "<!-- normal-end -->");
String abnormalSitesContent = StrUtil.subBetween(readContent, "<!-- abnormal-begin -->", "<!-- abnormal-end -->");
String[] normalSites = normalSitesContent.split("\n");
List<Website> normalWebsites = new ArrayList<>();
@ -85,6 +110,15 @@ public class Build {
String normalWebsitesJSONString = JSON.toJSONString(normalWebsites, SerializerFeature.WriteMapNullValue, SerializerFeature.PrettyFormat, SerializerFeature.SortField);
File normalWebsitesJSON = new File(basePath + File.separator + "data" + File.separator + "normal-websites.json");
FileUtil.writeString(normalWebsitesJSONString, normalWebsitesJSON, StandardCharsets.UTF_8);
}
public void initAbnormal() throws IOException, TemplateException {
String basePath = System.getProperty("user.dir");
String readmeFilePath = basePath + File.separator + "README.md";
File file = new File(readmeFilePath);
String readContent = FileUtil.readString(file, StandardCharsets.UTF_8);
String abnormalSitesContent = StrUtil.subBetween(readContent, "<!-- abnormal-begin -->", "<!-- abnormal-end -->");
String[] abnormalSites = abnormalSitesContent.split("\n");
List<Website> abnormalWebsites = new ArrayList<>();
@ -115,26 +149,6 @@ public class Build {
FileUtil.writeString(abnormalWebsitesJSONString, abnormalWebsitesJSON, StandardCharsets.UTF_8);
// Configuration cfg = new Configuration(Configuration.VERSION_2_3_32);
// FileTemplateLoader templateLoader = new FileTemplateLoader(new File(basePath + File.separator + "src" + File.separator + "main" + File.separator + "resources"));
// cfg.setTemplateLoader(templateLoader);
//
//// cfg.setClassForTemplateLoading(Website.class, basePath + File.separator + "src" + File.separator + "main" + File.separator + "resources");
// cfg.setDefaultEncoding("UTF-8");
// Template template = cfg.getTemplate("normal-websites-table.ftl");
//
// Map<String, Object> model = new HashMap<>();
// model.put("websites", normalWebsites);
//
// StringWriter out = new StringWriter();
// template.process(model, out);
//
// String renderedHtml = out.toString();
// System.out.println(renderedHtml);
}
public static String extractLink(String content) {

@ -2,6 +2,8 @@ package com.lilittlecat.freechatgpt;
import lombok.Getter;
import java.util.List;
/**
* @author <a href="https://github.com/LiLittleCat">LiLittleCat</a>
* @since 2023/5/7
@ -29,4 +31,8 @@ public enum Feature {
this.score = score;
}
public static double score(List<Feature> featureList) {
return featureList.stream().mapToDouble(Feature::getScore).sum();
}
}

Loading…
Cancel
Save