Code Monkey home page Code Monkey logo

Comments (6)

janosimas avatar janosimas commented on May 27, 2024 3

I was looking in some other sites that can give some information on this:
http://www.agenteimovel.com.br/mercado-imobiliario/a-venda/sao-paulo,sp/
http://www.zapimoveis.com.br/quanto-vale-este-imovel-mapa-dos-precos/

from serenata-de-amor.

lucasrcezimbra avatar lucasrcezimbra commented on May 27, 2024 1

Looking in ZAP Imoveis, I found that searching for 'estates for rent' instead of 'estates for sale', solve the problem cited by @luizpericolo, the response has a rental price (PrecoLocacao) that we can use:

{
  "AreaUtil": null,
  "Coordenadas": {
    "Latitude": -30.0332536, 
    "Longitude": -51.2152337
  },
  "DataUltimoAnuncio": null,
  "Dormitorios": null,
  "Endereco": null,
  "ID": 10779682,
  "NotaLocacao": 19.2896946427,
  "NotaVenda": 0,
  "PrecoLocacao": 6500,
  "PrecoM2": null,
  "PrecoVenda": null,
  "TipoOfertaID": 2,
  "indOferta": true
}

With coordinates it's possible to get the address.

And with ID we can get details about estate like "AreaTotal", "AreaUtil", etc:

{
  "AreaTotal": 100,
  "AreaUtil": 100,
  "Bairro": "BOM FIM",
  "Dormitorios": 0,
  "DormitoriosMaxima": null,
  "EstagioObra": 0,
  "FotoPrincipal": "http://imagens.zapcorp.com.br/2594410/3056797f-224c-4cf7-8307-9b4834b403fb{tipo}.jpg",
  "ID": 10779682,
  "IndDistrato": false,
  "PrecoLocacao": 6500,
  "PrecoVenda": null,
  "SubTipoImovel": "Loja/Salão",
  "SubTipoOferta": 2,
  "Suites": 0,
  "SuitesMaxima": null,
  "TipoOfertaID": 2,
  "Vagas": 0,
  "VagasMaxima": null
}

I created a simple script, just for tests, that get and print some estates. If it can be used for the project I can create a script to fetch the data.

from serenata-de-amor.

ebonet-zz avatar ebonet-zz commented on May 27, 2024 1

As addition, one could also get the real state data from VivaReal. I've done it on a personal project.

from serenata-de-amor.

luizpericolo avatar luizpericolo commented on May 27, 2024

@janosimas

The first site looks really scrapable. It would be easy to build "all possible urls" to collect and save the average real estate price and no further computation would be needed since the site already returns this information. And the site returns information by neighborhood. It might not be as granular as @cuducos commented on PR #27, but it is better than having an average price by state.

The second site would be a bit harder in my opinion. Searching for some neighborhoods here in Rio and checking the response that is rendered to the map you get entries like this:

{
   "AreaUtil": null 
   "Coordenadas": {
       "Latitude": -22.902176,
       "Longitude": -43.280269
   }
   "DataUltimoAnuncio": null
   "Dormitorios": null
   "Endereco": null
   "ID": 73390
   "PrecoM2": null
   "PrecoVenda": 271362.8263
}

It neither returns a value for "PrecoM2" (price by square meter) nor a value for "AreaUtil" (that means something like built area). That means we don't really have information about price for square meter for any real estate and we can't calculate it either. Aside from that the body of the POST that is sent for this API relies on long and lat coordinates.

from serenata-de-amor.

cuducos avatar cuducos commented on May 27, 2024

Wow… IMHO that's such an useful dataset to match with housing/accommodation expenses. Thanks for that.

I'm just not sure about which data to use for the scrapping. Real state prices in congressman origin, Brasília or what? Any ideas @Irio?

from serenata-de-amor.

cuducos avatar cuducos commented on May 27, 2024

I think PR #100 covers that, so I'm closing this issue.

from serenata-de-amor.

Related Issues (20)

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.