kingswon / douban-openapi-server

A Douban API server that provides an unofficial APIs for media information gathering

Home Page:https://hub.docker.com/r/caryyu/douban-openapi-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

douban-openapi-server

A Douban API server that provides an unofficial method for information gathering, currently, supporting several providers below:

  • SeleniumProvider - which will open a headless Chrome to simulate the user interaction (Optional)
  • HttpRequestProvider - which has leveraged Requests & BeautifulSoup for information gathering with no any browser interaction (By default)
  • P2PCacheProvider - ToDo (Scrapy/SQLite/IPFS/BitTorrent/Web3Storage/Resilio File Sync/etc) - ??????

Note: Any comments and issues are welcomed!

Docker

docker run --rm -d -p 5000:5000 caryyu/douban-openapi-server:latest
docker run --rm -d -p 5000:5000 caryyu/douban-openapi-server:<commit>

Note: the commit can be found from git history of main branch

Install

  • the toolkits of python3 and pipenv are required by executing the following scripts,
pipenv install
pipenv shell

export FLASK_APP=app.py
export FLASK_ENV=development
export FLASK_DEBUG=0
flask run

Note: There're two providers to choose, by default, HttpRequestProvider will take place, which will be faster for information scraping, for Selenium, You have to follow the official instruction and build the docker image by yourself

APIs (Swagger)

IMG

Disclaimer

This is only for research and study, Any copyright violation should count on your own, thanks.

Buy Me A Coffee

About

A Douban API server that provides an unofficial APIs for media information gathering

https://hub.docker.com/r/caryyu/douban-openapi-server

License:MIT License


Languages

Language:Python 97.8%Language:Dockerfile 1.5%Language:Shell 0.7%