@qq3501427,sudo apt install zenity
虽然 XSLT 最初被设计为用于 XML 转换的专用语言,但该语言是图灵完备的,这使得它理论上能够进行任意计算。
XSLT 2.0 最重要的创新包括:
使用正则表达式进行字符串操作XSLT 3.0
支持映射和数组,使 XSLT 能够处理 JSON 和 XML。
改进了对动态错误的处理,例如使用 xsl:try 指令。https://en.m.wikipedia.org/wiki/XSLT
@无名啊,搜“XSLT html to json”可以看到一些案例。
比如这个:
https://stackoverflow.com/questions/18055368/html-to-json-conversion-in-xslt
@无名啊,这是最接近你想要的东西:
XSLTJSON: Transforming XML to JSON using XSLT
https://github.com/bramstein/xsltjson
XSLT是一种样式表,用于把XML转换为其他表现形式(比如可显示的HTML,甚至是JSON)。该样式表也可以用于验证输入是否与样式匹配。
不过HTML不是严格的XML,不清楚解析器是否能正确处理HTML中的宽松语法。
PHP版:https://symfony.com/doc/current/components/dom_crawler.html
If you prefer CSS selectors over XPath, install The CssSelector Component. It allows you to use jQuery-like selectors:
$crawler = $crawler->filter('body > p');
querySelector的nodejs版本:
https://www.npmjs.com/package/query-selector
@无名啊,验证不了解。最好的html内容提取工具是浏览器的
document.querySelector()
,我在chatgpt机器人里有很多应用。
@rkonfj,是
除了SELinux,AppArmor也可以用于控制文件权限,Ubuntu默认启用,
sudo aa-status
可以查看应用的规则。
SELinux和AppArmor都属于“强制访问控制”(MAC),而其他方法属于自主访问控制(DAC)。
@艾木友尔尔巴,问爱特要v4
@TabKey9,csnet v4的ip可以,虎绿林机器人一直在用。
应楼主请求撤销意外删除:
update hu60_bbs_topic_meta set locked=0 where id=104258; update hu60_bbs_topic_content set content=(select content from hu60_msg where touid=22282 and byuid=22282 order by id desc limit 1), locked=0 where id=799078;
@rkonfj,嗯确实在116上没问题,只能认为是115.0.5790.171的bug。
@rkonfj,chrome现在不支持
id='chat--50'
这种两个减号的id
了。chatItem.id = `chat-${chat.uid}`
@rkonfj,在Chrome 115.0.5790.171上有兼容性问题:
function initChatWindowData() { renderChatList() document.querySelector(`#chat-${window.hu60_hu60bot_uid}`) .click() }
window.hu60_hu60bot_uid -50
document.querySelector(`#chat-${window.hu60_hu60bot_uid}`) null
22780_public_hu60bot.js:105 Uncaught TypeError: Cannot read properties of null (reading 'click') at initChatWindowData (22780_public_hu60bot.js:105:9) at initHu60botChat (22780_public_hu60bot.js:99:5) at startPlugin (22780_public_hu60bot.js:18:5) at 22780_public_hu60bot.js:770:1