![]() ![]() When initializing any of the subclasses, you’ll need to provide the site, and optionall the area, from where you want to query data. * condition = u 'new', u 'like new', u 'excellent', u 'good', u 'fair', u 'salvage' * auto_cylinders = u '3 cylinders', u '4 cylinders', u '5 cylinders', u '6 cylinders', u '8 cylinders', u '10 cylinders', u '12 cylinders', u 'other' * auto_drivetrain = u 'fwd', u 'rwd', u '4wd' * auto_fuel_type = u 'gas', u 'diesel', u 'hybrid', u 'electric', u 'other' * auto_paint = u 'black', u 'blue', u 'brown', u 'green', u 'grey', u 'orange', u 'purple', u 'red', u 'silver', u 'white', u 'yellow', u 'custom' * auto_size = u 'compact', u 'full-size', u 'mid-size', u 'sub-compact' * auto_title_status = u 'clean', u 'salvage', u 'rebuilt', u 'parts only', u 'lien', u 'missing' * auto_transmission = u 'manual', u 'automatic', u 'other' * auto_bodytype = u 'bus', u 'convertible', u 'coupe', u 'hatchback', u 'mini-van', u 'offroad', u 'pickup', u 'sedan', u 'truck', u 'SUV', u 'wagon', u 'van', u 'other' Where to get site and area from? CraigslistForSale filters with category 'cta' : * min_price =. * search_titles = True / False * has_image = True / False * posted_today = True / False * bundle_duplicates = True / False * search_distance =. show_filters ( category = 'cta' ) Base filters : * query =. CraigslistJobs filters : * is_internship = True / False * is_nonprofit = True / False * is_telecommuting = True / False * employment_type = u 'full-time', u 'part-time', u 'contract', u "employee's choice" > CraigslistForSale. show_filters () Base filters : * query =. show_filters() class-method: > from craigslist import CraigslistJobs, CraigslistForSale > CraigslistJobs. Supported by a specific subclass, use the. Where to get filters from?Įvery subclass has its own set of filters. Looking for a room in San Francisco? from craigslist import CraigslistHousing cl_h = CraigslistHousing ( site = 'sfbay', area = 'sfc', category = 'roo', filters = #. Installation pip install python-craigslist ClassesĬraigslistCommunity ( > community)ĬraigslistHousing ( > housing)ĬraigslistForSale ( > for sale)ĬraigslistEvents ( > event calendar)ĬraigslistServices ( > services)ĬraigslistResumes ( > resumes) It should not be used for crawling or downloading data from Craigslist. This module was implemented for educational purposes. I don’t work for or have any affiliation with Craigslist.
0 Comments
Leave a Reply. |