Todos Novo

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Entrar


Todos Novo Entrar

All gists matching topic json

Mais recente criado
Menos recente criado
Mais recente atualizado
Menos recente atualizado
LiuShen's Avatar

LiuShen / twikoo的表情包格式转artalk的表情包格式

0 curtidas
0 bifurcações
1 arquivos
Última atividade 1738571065
twikoo的表情包格式转artalk的表情包格式
artalk json owo twikoo
1 import json
2 import requests
3
4 def fetch_data_from_url(url):
5 # 获取JSON数据
6 response = requests.get(url)
7 return response.json()
8
9 def convert_data(original_data):
10 converted_data = []
LiuShen's Avatar

LiuShen / 友链friend.json生成新方式

0 curtidas
0 bifurcações
1 arquivos
Última atividade 1744361444
通过HEXO内置Generator生成,更加快捷,不需要json包
hexo json script
1 const blacklist = ["友站名称1", "友站名称2", "友站名称3"];
2 const path = "friend.json";
3
4 function genFriendJSON(locals) {
5 var friends = [];
6 var data = locals.data.link;
7 data.forEach((entry, index) => {
8 let lastIndex = 2;
9 if (index < lastIndex) {
10 const filteredLinkList = entry.link_list.filter(
Próximo Anterior

Desenvolvido por Opengist ⋅ Load: 45ms⋅

Português
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ 个人主页 ⋅ 站长博客