Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 505 Bytes

README.md

File metadata and controls

11 lines (10 loc) · 505 Bytes

Image Parser

Usage:

  • as it is now by (new ImageParser())->run();
  • can be called separetly like this:
    • (new ImageParser())->parseMain() will get all the pages containing images
    • (new ImageParser())->parseSecond() will get all the image links from the pages
    • (new ImageParser())->downloadImages() will download all the images using the links from previous step

Notes:

  • The script needs a MySql db
  • For retrieving the web pages content i'm using cURL (i know i could use guzzle)