ssnepenthe / recipe-scraper

A library for scraping recipes from popular recipe sites.
GNU General Public License v2.0
47 stars 15 forks source link

Consider passing crawler to normalizer methods #19

Closed ssnepenthe closed 6 years ago

ssnepenthe commented 6 years ago

Scripps Networks now seems to be using protocol-relative images in many places...

If normalizers receive the original crawler instance we can call $crawler->getUri() and use it to convert from relative to absolute URLs.