Given a page's contents (its HTML), how could I get the contents of the article?
For example, this website returns the contents of articles given a URL:
However, I don't want to use their API. I've used file_get_contents($url)
, but I have no idea how I would go about getting the contents of just the article.
Any ideas?