Nixes / PageScraper

Library that uses a heuristic to find and return the main contents of a news article. Algorithm developed by @Nixes.
8 stars 0 forks source link

Detect Relative links and convert to absolute links #4

Closed Nixes closed 8 years ago

Nixes commented 8 years ago

Detect and convert relative links / resources to absolute ones.

Nixes commented 8 years ago

Some code here: http://www.gambit.ph/converting-relative-urls-to-absolute-urls-in-php/ Still looking around for something better.

Nixes commented 8 years ago

This looks pretty good: https://github.com/monkeysuffrage/phpuri/blob/master/phpuri.php Still need to write a relative link Detection function first.

Nixes commented 8 years ago

Sufficient to just detect the http:// prefix?