首先分析下API和数据格式:
https://api.scratch.mit.edu/proxy/featured GET 23.235.37.162:443
返回数据与对应栏目:
community_newest_projects
community_most_remixed_projects What the Community is Remixing
scratch_design_studio Scratch Design Studio - In The Spotlight
curator_top_projects Projects Curated by -IcyMango-
community_featured_studios Featured Studios
community_most_loved_projects What the Community is Loving
community_featured_projects Featured Projects
https://api.scratch.mit.edu/projects/count/all GET 23.235.37.162:443
{"count":15715662}
https://scratch.mit.edu/accounts/login/ 登录
{username: "[email protected]", password: "020201aa", useMessages: true}
返回
[{"username": "[email protected]", "num_tries": 1, "success": 0, "msg": "\u7528\u6237\u540d\u6216\u5bc6\u7801\u4e0d\u6b63\u786e", "messages": [], "id": null}]
设计数据库:
project表 生成时type为project
id thumbnail_url title creator love_count remixers_count gallery_id curator_name
编号 URL地址 标题 创作者 喜欢数 再创作数 属于的画廊 监护者名字(展览策划人 就当作小编推荐吧!)
gallery表,生成时type为gallery 与project表的关系为1:N
id thumbnail_url title
打算先用mongose 实现
下载mogoDB 2008 R2版本
安装好后在C:\Program File目录下,将其bin文件夹加入路径
在D盘创建目录data\db
启动mongod -dbpath=d:\data\db\