juliomalegria / python-craigslist

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

sites.py does not parse properly. #5

Closed chikenlegg closed 8 years ago

chikenlegg commented 8 years ago

Assuming due to an update in CL. All that was needed was an extra '/' in rsplit.

!OLD site = a.attrs['href'].rsplit('/', 1)[1].split('.')[0]

!NEW site = a.attrs['href'].rsplit('//', 1)[1].split('.')[0]

Works now :)

juliomalegria commented 8 years ago

Thanks for pointing that out! Would you be interested in doing the change in a fork and opening a pull request? If not, I'll do the change as soon as possible.

juliomalegria commented 8 years ago

Fixed in #7