feat: update files

pull/172/head
LiLittleCat 2 years ago
parent 2124c2a4b0
commit 647dde7c11
  1. 52
      README.md
  2. 5
      pom.xml
  3. 51
      src/main/java/com.lilittlecat/freechatgpt/Build.java
  4. 7
      src/main/java/com.lilittlecat/freechatgpt/Website.java
  5. 43
      test.json

@ -32,6 +32,8 @@
### 类似官网风格 ### 类似官网风格
<!-- normal-begin -->
- [ 🆓🌎 ] [https://chatbot.theb.ai](https://chatbot.theb.ai/) - 2023-04-20 - [ 🆓🌎 ] [https://chatbot.theb.ai](https://chatbot.theb.ai/) - 2023-04-20
- [ 🆓🌎 ] [https://www.aitianhu.com](https://www.aitianhu.com/) - 2023-04-20 - [ 🆓🌎 ] [https://www.aitianhu.com](https://www.aitianhu.com/) - 2023-04-20
@ -255,6 +257,7 @@
- [ 🔐 ][http://bamboochat.kebakeba.com](http://bamboochat.kebakeba.com/) - 2023-05-12 - [ 🔐 ][http://bamboochat.kebakeba.com](http://bamboochat.kebakeba.com/) - 2023-05-12
<!-- normal-end -->
--- ---
### 替代方案 ### 替代方案
@ -293,6 +296,7 @@
<summary>点击展开</summary> <summary>点击展开</summary>
<!-- abnormal-begin -->
- ~~[ 🆓🔔 ] [http://www.tdchatd.us](http://www.tdchatd.us/)~~ - 2023-04-20 up 2023-05-05 down - ~~[ 🆓🔔 ] [http://www.tdchatd.us](http://www.tdchatd.us/)~~ - 2023-04-20 up 2023-05-05 down
- ~~[https://gpt.gpt0.icu](https://gpt.gpt0.icu)~~ - 2023-04-28 - ~~[https://gpt.gpt0.icu](https://gpt.gpt0.icu)~~ - 2023-04-28
@ -345,6 +349,8 @@
- ~~[https://chat.ninvfeng.xyz](https://chat.ninvfeng.xyz/) from <https://github.com/ninvfeng/chatgpt>~~ - 2023-04-04 - ~~[https://chat.ninvfeng.xyz](https://chat.ninvfeng.xyz/) from <https://github.com/ninvfeng/chatgpt>~~ - 2023-04-04
<!-- abnormal-end -->
</details> </details>
## 🤟 玩得开心 ## 🤟 玩得开心
@ -356,3 +362,49 @@
## Contributors ## Contributors
[![Contributors](https://contrib.rocks/image?repo=LiLittleCat/awesome-free-chatgpt)](https://github.com/LiLittleCat/awesome-free-chatgpt/graphs/contributors) [![Contributors](https://contrib.rocks/image?repo=LiLittleCat/awesome-free-chatgpt)](https://github.com/LiLittleCat/awesome-free-chatgpt/graphs/contributors)
## ChatGPT
## ChatGPT Alternative
## More
### Want to build your own ChatGPT mirror?
- https://github.com/mckaywrigley/chatbot-ui
- https://github.com/Yidadaa/ChatGPT-Next-Web
- https://github.com/Chanzhaoyu/chatgpt-web
- https://github.com/anse-app/chatgpt-demo
- https://github.com/869413421/chatgpt-web
- https://github.com/xqdoo00o/chatgpt-web
### Prompt
### Developer tools with Chat
- cursor.so
- codeium.com
<table>
<tr><th>序号</th><th>网站</th><th>预览</th><th>标签</th><th>添加时间</th><th>备注</th><th>操作</th></tr>
<tr>
<td>1</td>
<td>BAI Chat <a href="https://chatbot.theb.ai/" target="_blank">https://chatbot.theb.ai/</a> <br> BAI Chat is a GPT-3.5 / ChatGPT API based chatbot that is free, convenient and responsive. Give it a try!</td>
<td style="text-align: center">
<details>
<summary>点击预览</summary>
<img src="https://iad.microlink.io/wy4l15y8WDww-Umt_bIlEb0Q6C8htLZyh5kWKt_PJBFnroJJUvh8WceqAgCkaTjMuLws-96L-L4wXv8xbBcj5A.png" alt="preview">
</details>
</td>
<td>🆓</td>
<td>2018-08-01</td>
<td>测试</td>
<td>推荐</td>
</tr>
</table>

@ -31,6 +31,11 @@
<version>1.18.20</version> <version>1.18.20</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.32</version>
</dependency>
<!-- <dependency>--> <!-- <dependency>-->
<!-- <groupId>org.seleniumhq.selenium</groupId>--> <!-- <groupId>org.seleniumhq.selenium</groupId>-->
<!-- <artifactId>selenium-java</artifactId>--> <!-- <artifactId>selenium-java</artifactId>-->

@ -1,5 +1,56 @@
package com.lilittlecat.freechatgpt; package com.lilittlecat.freechatgpt;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.StrUtil;
import java.io.File;
import java.nio.charset.StandardCharsets;
import java.time.LocalDate;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Build { public class Build {
public static void main(String[] args) {
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");
for (String normalSite : normalSites) {
// Extract the link
String link = extractLink(normalSite);
// Extract the time
String time = extractTime(normalSite);
if (StrUtil.isNotBlank(link) && StrUtil.isNotBlank(time)) {
Website website = new Website();
website.setUrl(link);
website.setAddedDate(LocalDate.parse(time));
}
System.out.println(link + " " + time);
}
}
public static String extractLink(String content) {
Pattern linkPattern = Pattern.compile("\\((.+?)\\)");
Matcher linkMatcher = linkPattern.matcher(content);
if (linkMatcher.find()) {
return linkMatcher.group(1);
}
return null;
}
public static String extractTime(String content) {
Pattern timePattern = Pattern.compile("\\d{4}-\\d{2}-\\d{2}");
Matcher timeMatcher = timePattern.matcher(content);
if (timeMatcher.find()) {
return timeMatcher.group();
}
return null;
}
} }

@ -14,10 +14,17 @@ public class Website {
private String url; private String url;
private String title; private String title;
private String description; private String description;
private String lang;
private List<Feature> features; private List<Feature> features;
private Double score; private Double score;
private LocalDate addedDate; private LocalDate addedDate;
private LocalDate updatedDate; private LocalDate updatedDate;
private LocalDate reportedInvalidDate; private LocalDate reportedInvalidDate;
private String labels; private String labels;
private String customDescription;
private String sourceInfo;
/**
* 0: normal 1: abnormal
*/
private Integer status;
} }

@ -0,0 +1,43 @@
{
"status": "success",
"data": {
"title": "BAI Chat",
"description": "BAI Chat is a GPT-3.5 / ChatGPT API based chatbot that is free, convenient and responsive. Give it a try!",
"lang": "zh",
"author": null,
"publisher": "theb.ai",
"image": null,
"date": "2023-03-15T15:11:51.000Z",
"url": "https://chatbot.theb.ai/",
"logo": {
"url": "https://chatbot.theb.ai/assets/bai.png",
"type": "png",
"size": 1619,
"height": 100,
"width": 100,
"size_pretty": "1.62 kB"
},
"screenshot": {
"size_pretty": "197 kB",
"size": 196606,
"type": "png",
"url": "https://iad.microlink.io/wy4l15y8WDww-Umt_bIlEb0Q6C8htLZyh5kWKt_PJBFnroJJUvh8WceqAgCkaTjMuLws-96L-L4wXv8xbBcj5A.png",
"width": 2560,
"height": 1600
}
},
"statusCode": 200,
"headers": {
"cf-cache-status": "DYNAMIC",
"cf-ray": "7c270ebf4c8d425f-EWR",
"content-encoding": "br",
"content-type": "text/html",
"date": "Fri, 05 May 2023 06:51:54 GMT",
"last-modified": "Wed, 15 Mar 2023 15:11:51 GMT",
"nel": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}",
"report-to": "{\"endpoints\":[{\"url\":\"https:\/\/a.nel.cloudflare.com\/report\/v3?s=qSyOtzkETpcunxW2UZ8VUJKM%2F7iJ07iLA3b5HFJDXHZ%2BbjeKl4snj%2FtPmYnqSBq8eJ%2BF%2BwN5uE%2B%2BFyVnoi49Xsel6Tw7CGS%2BAx%2BHz7JHE%2BD%2FcrJ8DiE7A7OEJK4kot2Upw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
"server": "cloudflare",
"strict-transport-security": "max-age=31536000",
"vary": "Accept-Encoding"
}
}
Loading…
Cancel
Save