Coder Social home page Coder Social logo

xuhao61 / douban-openapi-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caryyu/douban-openapi-server

0.0 0.0 0.0 137 KB

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

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

License: MIT License

Shell 0.65% Python 97.88% Dockerfile 1.46%

douban-openapi-server's Introduction

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

douban-openapi-server's People

Contributors

caryyu avatar cxfksword avatar xcz1997 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.