Coder Social home page Coder Social logo

Question: is it possible to pull data by municipality name, property type and land size? about mls-real-estate-scraper-for-realtor.ca HOT 1 OPEN

harry-s-grewal avatar harry-s-grewal commented on May 28, 2024
Question: is it possible to pull data by municipality name, property type and land size?

from mls-real-estate-scraper-for-realtor.ca.

Comments (1)

harry-s-grewal avatar harry-s-grewal commented on May 28, 2024

Hey Dan! Thanks for the feedback and the awesome question. Happy to help

See this screenshot - this is the payload sent to realtor.ca's PropertySearch_Post API endpoint.

image

As you can see, there's two fields that can provide the information you need.

Firstly, LandSizeRange. I've mapped out the following values for the land-size so you can find what you need.

Land Size Range LandSizeRange
0 - 1/4 Acre LandSizeRange: 0-0.25
1/4 - 1/2 Acre LandSizeRange: 0.25-0.5
1/2 - 1 Acre LandSizeRange: 0.5-1
1+ Acre LandSizeRange: 1-0
2+ Acre LandSizeRange: 2-0

Secondly, PropertySearchTypeId will give you the property type you want.

Property Type PropertySearchTypeId
Any commercial PropertySearchTypeId: 0
Residential PropertySearchTypeId: 1
Recreational PropertySearchTypeId: 2
Condo PropertySearchTypeId: 3
Vacant land PropertySearchTypeId: 6
Multi-Family PropertySearchTypeId: 8

I've tested both of these additions to the query, and they work.

As for your final question, you should be able to specify the municipality as an argument to get_property_list_by_city(). Is that what you mean, or did I misunderstand?

I'm happy to hear this library is helping the NCC! Please don't hesitate if you have any more questions.

Also, if you need some help with this project, feel free to reach out to me on LinkedIn at linkedin.com/in/harry-s-grewal.

from mls-real-estate-scraper-for-realtor.ca.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.