I would like to have a script where I can enter the URL, and it will intelligently grab the first paragraph of the article ... I'm not sure where to start, other than just pulling text from <p>tags. Do you know any tips / tutorials on how to do this?
Update
For further clarification, I create a section of my site where users can send links, for example, to Facebook, it will capture an image from its site, as well as text, to follow the link. I am using PHP and trying to determine the best way to do this.
I say “reasonably” because I would like to try to get the content on this page, which is important not only in the first paragraph, but also in the first paragraph of the most important content.
source
share