Coder Social home page Coder Social logo

douban-room-spider's Introduction

douban-room-spider

豆瓣爬虫找房,支持以下功能

  1. 新房源邮件提醒
  2. 错误邮件报警
  3. 过滤相似房源

安装

pip3 install -r requirement.txt

config.py配置

mail = {
    'sender': '[email protected]',
    'host': 'smtp.163.com',
    'receivers': ['[email protected]'],
    'password': 'password',
    'subject_prefix': '豆瓣爬虫租房'
}

# 数字为小组首页的url
groups = [
    (26926, '北京租房豆瓣'),
    (279962, '北京租房(非中介)'),
    (262626, '北京无中介租房(寻天使投资)'),
    (35417, '北京租房'),
    (56297, '北京个人租房 (真房源|无中介)'),
    (257523, '北京租房房东联盟(中介勿扰) '),
]

# 要查找的地方
locations = ('西二旗', '安宁庄', '小米', '上地', '龙泽', '永泰庄', '清河')

# 按标题过滤这些帖子
exclude_words = ('求租')

运行

需要在后台一直运行,每半小时爬取一次,爬取到新房源有邮件提醒

nohup python3 main.py &>> /tmp/douban_spider.log

douban-room-spider's People

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.