pengzhaoqing / housepricing Goto Github PK
View Code? Open in Web Editor NEWHousePricing旨在提供房价的可视化预测,帮助用户更好的评估房产和预测未来的价格(dev)
Home Page: https://house-pricing.herokuapp.com/
HousePricing旨在提供房价的可视化预测,帮助用户更好的评估房产和预测未来的价格(dev)
Home Page: https://house-pricing.herokuapp.com/
想请问怎么运行起来呀,步骤是怎么样的
不错的东西,不过没有说明文档不知道如何使用呢~@PENGZhaoqing
项目很好,建议加以完善:
1.添加对于城市的选择,目前只有北京市房价;
2.添加样本统计;
3.热力图建议提供添加图例。
加油!
【抓取房屋集周边】操作,更新数据完成时会触发这个bug
Started GET "/spiders/return_next" for 127.0.0.1 at 2019-04-25 13:00:08 +0800
Processing by SpidersController#return_next as JSON
House Load (0.3ms) SELECT "houses".* FROM "houses" WHERE (id > 2999) ORDER BY "houses"."id" ASC LIMIT 1
BusesHouses Load (3.0ms) SELECT "buses_houses".* FROM "buses_houses" WHERE "buses_houses"."house_id" = $1 [["house_id", 3000]]
House Load (0.3ms) SELECT "houses".* FROM "houses" ORDER BY "houses"."id" DESC LIMIT 1
Completed 500 Internal Server Error in 17ms (ActiveRecord: 3.7ms)
NameError (undefined local variable or method `buses_path' for #<SpidersController:0x00007fbeb0af9260>
Did you mean? houses_path
house_path):
app/controllers/spiders_controller.rb:26:in `return_next'
我看源代码里写的确实是buses_path
,
https://github.com/PENGZhaoqing/HousePricing/blob/master/app/controllers/spiders_controller.rb#L26
然而rake routes的结果却没有类似的路径:
Prefix Verb URI Pattern Controller#Action
root GET / houses#map
visualisation_scatter GET /visualisation/scatter(.:format) visualisation#scatter
visualisation_heatmap GET /visualisation/heatmap(.:format) visualisation#heatmap
visualisation_tableau GET /visualisation/tableau(.:format) visualisation#tableau
sessions_login POST /sessions/login(.:format) sessions#create
sessions_logout DELETE /sessions/logout(.:format) sessions#destroy
export_houses GET /houses/export(.:format) houses#export
filter_houses GET /houses/filter(.:format) houses#filter
return_houses_houses GET /houses/return_houses(.:format) houses#return_houses
return_nums_prices_houses GET /houses/return_nums_prices(.:format) houses#return_nums_prices
nearby_house GET /houses/:id/nearby(.:format) houses#nearby
houses GET /houses(.:format) houses#index
POST /houses(.:format) houses#create
house GET /houses/:id(.:format) houses#show
return_next_spiders GET /spiders/return_next(.:format) spiders#return_next
export_bus_spiders GET /spiders/export_bus(.:format) spiders#export_bus
export_bus_house_spiders GET /spiders/export_bus_house(.:format) spiders#export_bus_house
spiders GET /spiders(.:format) spiders#index
POST /spiders(.:format) spiders#create
ajax_hospitals GET /hospitals/ajax(.:format) hospitals#ajax
hospitals GET /hospitals(.:format) hospitals#index
POST /hospitals(.:format) hospitals#create
所以,这里究竟应该如何解决呢?
我安装了也无法运行啊,没有报错
项目可以运行,数据库房屋数据可以查询,无法显示单个房源周边信息的各个图表。首页地图和热图只显示背景百度地图
如题,好像只能使用北京地址,改地址需要拉镜像吗
打开数据列表会在页面上报错,主要报错信息如下:
NoMethodError in Houses#index
Showing /Users/SlothSimon/Projects/HousePricing/app/views/houses/_houses.erb where line #95 raised:
undefined method `hospital_num' for #House:0x007ffd311626d8
查看了一下自己导入的数据库发现Houses表中没有医院、学校等字段,不知是不是数据库还要做进一步的处理?
感谢!
抓取周边信息,提取没有权限,这是为何?
Hi
朋友你好
请问如何抓取房源周边信息?
rake aborted!
ActiveRecord::NoDatabaseError: FATAL: role "python" does not exist
点击开始按钮,报error,是不是在哪里记了起始ID。
Ruby on Rails 由于依赖 mimemagic 0.3.5 而受到影响,bundle install命令无法运行
您的rails用的是 rails 4.2.5.2版本 ,现在都是5.x版本了。该如何处理?
是否需要安装旧版本,如何安装?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.