-
Notifications
You must be signed in to change notification settings - Fork 180
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
无法运行 #6
Comments
哪个地方无法运行啊,主页能进去码 |
进不去,端口也没起 |
运行 |
我已经启动了,不好意思,没看到,还有个问题,json数据怎么导入? |
我没有找到文档能让爬虫抓取下来的json数据存入数据库中,特像您请教下。谢谢 |
在db文件夹下,seeds.rb用来导入json到数据库中,你可以看这个文件的代码:
这里就是把json文件导入数据库的代码 运行 |
hash里并没有读取到db/housedata.json中有关area字段的信息,你先看一下这个文件在不在,然后在解析这个文件的时候,对每一个需要解析的字段进行打印,确保解析顺利以后再往数据库里放 |
这个我已经改好了,估计是网页改过结构了,所以抓取到的数据和你的格式不一样造成了
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我安装了也无法运行啊,没有报错
The text was updated successfully, but these errors were encountered: