Jump to content

wfejflefklefwefwefwe

New Members
  • Posts

    4
  • Joined

  • Last visited

wfejflefklefwefwefwe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It works well enough, I guess. I am finding issues where it shows me an image rather than link text. This is when an image is the link. I guess there is some way to remove all images from the page?
  2. The HTML is the page source of the website, Guardian.co.uk I'm bascally writing a PHP CURL script to download news sites, extract the headlines and URLs, and then put them all on one page. It's a convenient way to read a wide source of news and saves you from missing anything. Here is a sample from the Guardan site as of now <h1> <a href="http://www.theguardian.com/world/2014/mar/12/mh370-malaysia-airlines-search-expands-third-possible-sighting" class="link-text">Plane search expands after third possible sighting</a> </h1>
  3. This simply doesn't work. -> href does work -> innertext does not work
  4. I want to use PHP to extract all A HREF urls and the text that clicks through to the link. e.g. This is Google With this link, I would like to extract 1. This is Google 2. http://google.com I've looked into simplehtmldom_1_5 library but this just seems to get the URL but not the text overlay. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.