def main(): a = get_args() filter = None if a.filter: # XXX change to logging print 'search filter present' filter = json.load(open(a.filter)) redfin = RedFin() redfin.use_proxies = False redfin.get_search_results(filter=filter) r_data = redfin.get_one_property_data() h = House(street_address=r_data['street_address'], city=r_data['address_locality'], state=r_data['address_region'], zip_code=r_data['postal_code'], beds=r_data['beds'], baths=r_data['baths'], sq_ft=r_data['sqFt'], lot_size=None, home_type='sfh') l = Listing(house=h)
from redfin import RedFin redfin = RedFin() redfin.use_browser() redfin.get_search_results() redfin.get_property_data()
from redfin import RedFin redfin = RedFin() redfin.use_proxies = True redfin.get_search_results() redfin.get_property_data()
import sys from redfin import RedFin if len(sys.argv) < 2: print('start url expected') sys.exit(-1) start_url = sys.argv[1] if len(sys.argv) < 3: print('output file name expected') sys.exit(-1) output_file = sys.argv[2] redfin = RedFin(start_url=start_url) redfin.use_browser() redfin.get_search_results() redfin.get_property_data(output_json_file=output_file)
from redfin import RedFin redfin = RedFin() redfin.get_search_results() redfin.get_property_data()
from redfin import RedFin start_url = 'https://www.redfin.com/city/5665/MI/Detroit/filter/remarks=land+contract' redfin = RedFin() redfin.start_url = start_url redfin.get_search_results() redfin.get_property_data()
from redfin import RedFin redfin = RedFin() redfin.start_url = "https://www.redfin.com/city/13654/CA/Oakland" redfin.get_search_results() redfin.get_property_data() #TODO add proxy.txt and support for proxies, redfin blocked ip address last time #TODO scraper did not find address, price or redfin estimate lastime. check parcel parser