Tech
[程序员] 腾讯会议录像网页逐字稿提取代码
古法手写了一份腾讯会议录像网页逐字稿提取代码,打开腾需会议录像网页后粘贴到浏览器控制台运行即可得到整理好的全量发言文本
var el = document.querySelector(`.minutes-module-paragraphs`)
var propsKey = Object.keys(el ).find(key=>key.startsWith('__reactProps$'))
var props = el[propsKey]
const data = props.children.props.data
const text = data.map(el=>`${el?.speaker?.user_name}:${el?.sentences?.map(el=>el.words?.map(el=>el.text).join('')).join(' ')}`).join('\n')
console.log(text)
有缘自取,关注我为您带来更好过多的工具和方案
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX