GithubHelp home page GithubHelp logo

alex6xu / zufang Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guapier/zufang

0.0 1.0 0.0 897 KB

租房爬虫,基于flask,采用apscheduler定时任务,通过微信,定时给用户推送想要的租房信息

Python 3.03% CSS 49.26% JavaScript 43.50% HTML 4.21%

zufang's Introduction

这里有房

About

听说最近你想租房,但是却没时间去相应网站查看,我想我做的这个东东可以满足你的需求,功能比较简单,通过web方式添加关键字定时任务,然后爬虫定时爬取关键字房源,然后进行微信推送,你只需要在微信里面就可以查看你想要了解的房源信息


skills

主要用到了flask,sqlalchemy,apscheduler这些技术,其中flask提供web页面和api,sqlalchey主要负责处理数据库方面问题,apscheduler主要处理定时任务,以及定时任务持久化


run

1.安装包

pip install flask
pip install flask-login
pip install flask-sqlalchey
pip install flask-apscheduler

2.运行

python group-search-city.py
python app_schedule.py

3.说明 房源数据主要来源于豆瓣,后期可能会添加其他源,group-search-city.py主要用来爬虫都放城市所对应的group,python app_schedule.py用来启动应用,每次最多推送10条,数据通过title去重,关键字用英文逗号隔开,不可以使用中文,代码没有做太多的异常处理,风格也还有待完善,没有用到flask中的蓝图,后期会进行优化 4.感谢 灵感来自tomxin7 ui也是参考的他的UI,感谢,核心逻辑是自己实现的

task_list.png task.png detail.jpg list.jpg

zufang's People

Contributors

guapier avatar

Watchers

James Cloos 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.