Giter Club home page Giter Club logo

luoo's Introduction

Luoo

为 Luoo.qy 提供后端 API, 基于 Python、Node.js、Koa、MongoDB 等构建

Alt text

1. 关于 / About

落网 ( luoo.net ) 一直是我很喜欢的一个音乐社区, 其中大量优质的独立音乐推荐很合我的口味, 他们十多年对音乐的坚持也让我充满敬意。落网是我手机上使用频率仅次于网易云的音乐软件, 但是电脑端却只能使用网页来听落网, 因此便决定给落网写电脑客户端。

2. 开发 / Development

  • 设计工具: Sketch
  • 开发平台: macOS Sierra、Windows 10
  • 开发工具: WebStorm、PyCharm、SublimeText
  • 客户端技术栈: Node.js、Electron、Vue、Vuex、NeDB、Webpack 等
  • 后端技术栈: Node、Koa、Python、MongoDB、Urllib、BeautifulSoup 等

客户端项目结构:

├── README.md
├── requirements.txt
├── server (服务端目录)
│   ├── db.js (封装数据库操作)
│   ├── main.js (主进程)
│   ├── package.json (项目信息文件)
├── spiders (爬虫目录)
│   ├── __init__.py
│   ├── config.py (爬虫配置)
│   ├── cover_downloader.py (下载封面)
│   ├── db.py (封装数据库操作)
│   ├── lib.py (封装基础操作)
│   ├── single_spider.py (单曲爬虫)
│   ├── start.py (启动爬虫)
│   ├── task.py (爬取任务管理)
│   └── vol_spider.py (期刊爬虫)
├── task.py (启动任务)
└── website (网站目录)

4. API

服务端 API 可以通过 http://l.page.**/ 访问, 返回数据类型为 JSON

/vol/<volIndex>

根据期刊数来获取期刊数据, 如 http://l.page.**/vol/717

/single/<singleDate>

根据发布日期来获取单曲数据, 如 http://l.page.**/single/20160722

/vols/<volIndex>

根据当前期刊数来获取该期刊之后的所有新的期刊数据, 如 http://l.page.**/vols/926

/singles/<singleDate>

根据当前发布日期来获取该发布日期之后的所有新的单曲数据, 如 http://l.page.**/singles/20170628

/latest/<type>

获取最新的期刊数或单曲发布日期, 允许的 type 为 vol 或 single, 如 http://l.page.**/latest/vol

/update/<platform>/<preVersion>

根据当前的版本与平台类型获取更新信息, 允许的 platform 值为 0(macOS)、1(Windows) 或 2(linux), 如 http://l.page.**/update/0/0.9

落 · 在低处 (2017/07/01)

luoo's People

Contributors

elliothux avatar

Watchers

James Cloos avatar  avatar

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.