Finding and Removing HTML Elements from a Web Page
My script that looks for translation errors on our website is generating too many false positives. I need to ignore an area at the bottom of all pages, called the country selector which is a list of country names that are not translated. I first try to remove the country name strings after I have extracted the text from the web page, then I realize it would be better to find and remove specific HTML elements before extracting the text.
Features covered in this code-along style video include:
- Text Analytics Toolbox: getAttribute, extractHTML
- arrayfun
Play the video in full screen mode for a better viewing experience.


评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。