webread not yielding actual website

Hi there. I'm trying to learn how to extract information from websites. As an example, i'm trying to extract text from Facebook posts but webread gives me something which appears to be quite different from what I'm actually seeing on the website. I'm a complete Noob at this particular type of task and so I was hoping I could get some pointers concerning how to get the text, as I see it, rather than some obscured version. Thanks in advance!

3 Comments

@Jakob Sievers - can you provide an example of the code you are using to fetch the data, and the results of that fetch? Please describe what you are expecting to see from the results.
DGM
DGM on 14 Jul 2022
Edited: DGM on 14 Jul 2022
Considering the source, I'm going to guess it's dynamic content.
Without knowing what page and what content exactly is being targeted, it's hard to be sure.
@DGM: reading through the references in the thread you're referring to, I think it may be the exact problem that the stuff you're seeing on sites like Facebook is created not by basic HTML but by tons of scripts and such, which webread then is not able to extract.
Is there no way to dig deeper than webread, using matlab? I'd really like to stay on the Matlab platform, which I'm most familiar with, before considering other alternatives

Sign in to comment.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Asked:

on 13 Jul 2022

Commented:

on 14 Jul 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!