divinityfound/craigslistapi

There is no license information available for the latest version (dev-master) of this package.

Parse Craigslist data and return it in json format.

dev-master 2016-09-18 16:47 UTC

This package is not auto-updated.

Last update: 2024-12-21 19:29:45 UTC


README

##Craigslist API ###Scrape against craigslist for anything you'd like!

Craigslist doesn't use an actual API so you have to scrape against it and parse the data accordingly. This tool will make it easier to aggregate a lot of data into a useable fasion.

###Code

    require_once(__DIR__ . '/../vendor/autoload.php');

    $craigslist = new \Divinityfound\CraigslistApi\Reader;

    echo '<pre>';
    print_r($craigslist->getSearchResults('omaha','cpg'));
    echo '</pre>';
    exit;
?>