juliomalegria / python-craigslist

Simple Craigslist wrapper
MIT No Attribution
387 stars 117 forks source link

jsonsearch vs regularsearch? #33

Closed AlJohri closed 7 years ago

AlJohri commented 7 years ago

Hey @juliomalegria, I was wondering if you've ever used the jsonsearch endpoint within craigslist and compared it to the regular search? I wasn't sure what the differences are but it seems a tad easier to parse.

Here's a quick script that runs on Python 3.5 and requires the requests library demonstrating the jsonsearch endpoint: https://gist.github.com/AlJohri/dc51918a65752099b2a8f4df5dba7f93

Here's an example of the jsonsearch endpoint that I'm referring to: https://washingtondc.craigslist.org/jsonsearch/apa?postal_code=20071&search_distance=1&sort=date&s=0