找到10216个回复
不用谢
curl 'http://dxdj3dm.com/e/extend/get/' \ -H 'Accept: text/html, */*; q=0.01' \ -H 'Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \ -H 'Cookie: arp_scroll_position=1721' \ -H 'DNT: 1' \ -H 'Origin: http://dxdj3dm.com' \ -H 'Referer: http://dxdj3dm.com/' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36' \ -H 'X-Requested-With: XMLHttpRequest' \ --data-raw 'next=3&title=&classid=0' \ --insecure
~~~
直接爬接口
其实用js实现的我也弄差不多了,但是我是想如何把引用的评论自定义html样式可视化的渲染在新评论中
类似这样吧:
hu60_insert_text(document.querySelector('#content'), '> ' + document.querySelector('#floor_content_5').innerText.substr(0, 50).replace(/[\r\n\s]+/g, ' ').replace(/@/g, '@[empty]') + '\n\n')
其中
floor_content_5
替换为对应的楼层。
后面是服务器数据
next 1,2,3,4........等
for循环
应该可以用插件实现吧?