juliomalegria / python-craigslist

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

Fixed get_all_sites() issue. #6

Closed Onebrownsound closed 8 years ago

Onebrownsound commented 8 years ago

Craigslist must have added an extra '/' to the href for their official sites ex:

  • long island
  • . Noticed this when attempting to use the library (it's awesome). A not a real site error was thrown when I was trying to use the library, so I started to investigate the get_all_sites() function in sites.py. Added an extra '/' to the split and voila it worked.