Code Monkey home page Code Monkey logo

591housingapi's Introduction

591 租屋網資訊API

PyPI version

說明

給他一個 591 的網址,他會將租屋資訊轉成 JSON 格式給你,同時支援抓取連絡電話。提供一個 cli 工具以及一個基於 flask 的 api 介面。

使用方式

安裝

  1. 先 clone 一份 repo 到本地端
git clone https://github.com/frankurcrazy/591HousingApi.git
cd 591HousingApi
  1. 安裝 python 的 dependencies
pip install -r requirements.txt
  1. 也可以直接利用 pip 安裝,省略 1, 2 步驟
pip install py591
  1. 安裝 Tesseract。除了 python 對應的 Tesseract 模組之外,還得要安裝 Tesseract 引擎 For ubuntu/debian:
apt install -y tesseract-ocr

For FreeBSD:

pkg install -y tesseract

For MacOSX with homebrew:

brew install tesseract
  1. 使用指令介面或 API 介面 如果要使用指令介面請直接輸入
python -m py591.parse [591 租屋網網址]

如果要使用 API 介面,請輸入

python -m py591.app

打開瀏覽器輸入網址: http://localhost:5000/591/[591 租屋網網址]

591housingapi's People

Contributors

frankurcrazy avatar dependabot[bot] 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.