Scraping Links from a Set of MATLAB Documentation Pages
My colleague Sam asked if I could help him try and understand how a set of documentation pages were linked together and perhaps visualize them as a graph.
Now, I do have a good idea of all the pages on our website and all the links between them but he is only interested in the links in the body of the page, i.e. not the links in the menu or footer of the page or in the navigation on the left. So I need to find a way to extract just those links. After using webread to read the content, I think I can use a combination of functions form the Text Analytics Toolbox to process the HTML tags.
Features covered in this code-along style video include:
- Text Analytics Toolbox: findElement, getAttribute, and extractHTMLText
- Misc: webread, regexprep
Play the video in full screen mode for a better viewing experience.
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.