juliomalegria / python-craigslist

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

UnicodeEncodeError #61

Closed smonjezi1 closed 5 years ago

smonjezi1 commented 5 years ago

Thank you for making this awesome package. I tried to run your example and it returns with an error after a few seconds.

code:

from craigslist import CraigslistHousing
cl_h = CraigslistHousing(site='sfbay', area='sfc', category='roo',
                         filters={'max_price': 1200, 'private_room': True})
for result in cl_h.get_results(sort_by='newest', geotagged=True):
    print result

Output:

Traceback (most recent call last): File "/get_data_test.py", line 35, in print (result) UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 56-56: Non-BMP character not supported in Tk

Rafalonso commented 5 years ago

What's your python version?

juliomalegria commented 5 years ago

I can't reproduce this. Please reopen the issue if you're still seeing this, sharing a bit more info (Python version would be nice). I'm closing this since it's quite old.