Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realtor-specific search #1

Open
ZenenTreadwell opened this issue May 4, 2024 · 2 comments
Open

Realtor-specific search #1

ZenenTreadwell opened this issue May 4, 2024 · 2 comments

Comments

@ZenenTreadwell
Copy link

Hey, cool project! Is there any way that I can use it to search for active listings with a specific agent?

@rachitt96
Copy link
Owner

Hi Zenen! Thanks for your feedback.

I have recently added the feature of searching / filtering the listings with Name of Realtor / Brokerage Name (Realtor's Office). To use this new feature, you will need to upgrade the version of pyRealtor with following command (and make sure that the version is >= 0.1.6):

pip install --upgrade pyRealtor

Once the version is upgraded, you can run following code snippet.

# search for listings with specific Brokerage Name / Office Name
import pyRealtor
house_obj = pyRealtor.HousesFacade()

house_obj.search_save_houses(
     'Barrhaven', 
     report_file_name = 'unreserved_barrhaven_all_litings.xlsx', 
     use_proxy=True, 
     realtor_brokerage_filter='Unreserved'
)
# search for listings with specific Realtor's Name
import pyRealtor
house_obj = pyRealtor.HousesFacade()

house_obj.search_save_houses(
     'Barrhaven', 
     report_file_name = 'chris_barrhaven_all_litings.xlsx', 
     use_proxy=True, 
     realtor_name_filter='Chris'
)

For realtor specific search, the library follows following steps internally:

  • Search for all listings in a particular area with user provided filters
  • Filters for listings where Realtor's Name matches with user provided condition.

I hope that this answers your question. In case you have a better approach to solve this issue, then please feel free to suggest.

@duranduran127
Copy link

@rachitt96 How can we search by state as well? for example if you search Jackson and only want Jackson in Wyoming and not Mississippi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants