推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
whatTheGhost
V2EX  ›  Python

写了一个拉勾的爬虫……

  •  
  •   whatTheGhost · Mar 12, 2017 · 4454 views
    This topic created in 3532 days ago, the information mentioned may be changed or developed.
    github 地址:
    https://github.com/whatsGhost/lagou_spider

    总共一百多行代码。
    支持全文搜索;屏蔽公司;设置最低薪资下限,上限;最高薪资下限,上限。
    搜完后会把职位信息和地址写到文本中。

    http://d3.freep.cn/3tb_170312162616uyml583491.png

    昨天下午观摩了下python的语法 ,果然还是人生苦短,要用 python ( ̄ヘ ̄ o #)
    13 replies  •  2017-03-13 12:52:37 +08:00
    whatTheGhost
    whatTheGhost
    OP
    Mar 12, 2017
    1
    二楼,杭州, 14 毕业,找一个 C++ 服务端的坑。
    a87150
    a87150
    Mar 12, 2017
    2
    看得出来是写 c++的,居然能把 python 写得这么复杂
    whatTheGhost
    whatTheGhost
    OP
    Mar 12, 2017❤️1
    3
    @a87150 哈~,这锅甩给 java ,这其实是仿 java ,一个 static main 函数,各种 get/set ……
    Luckyray
    Luckyray
    Mar 12, 2017 via iPhone
    4
    人生苦短你用 Python 写 Java ……
    mianju
    mianju
    Mar 12, 2017
    5
    python 被你这么写也是没谁了
    kozora
    kozora
    Mar 12, 2017
    6
    拉勾拉勾 一百年不匹配的网站爬来有什么意义。。
    BoBoy
    BoBoy
    Mar 12, 2017 via iPhone
    7
    拉勾就是垃圾,有啥好爬的。
    defunct9
    defunct9
    Mar 12, 2017 via iPhone
    8
    scrapy 弄弄就好了吧,简单复杂化了
    julyclyde
    julyclyde
    Mar 12, 2017
    9
    经 @whatTheGhost 点拨,加上我一点点 java 粗浅的功底(我还是知道 java 程序的入口在哪儿的!!)我居然明白了
    staticmethod decorator 的意思
    figofuture
    figofuture
    Mar 13, 2017
    10
    mark
    justfun
    justfun
    Mar 13, 2017
    11
    javathon ==
    whatTheGhost
    whatTheGhost
    OP
    Mar 13, 2017 via Android
    12
    @justfun ,不要在意这些细节Σ( ° △ °|||)︴
    siteshen
    siteshen
    Mar 13, 2017
    13
    这年头,爬一个页面的程序都能叫爬虫…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2452 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 05:01 · PVG 13:01 · LAX 21:01 · JFK 00:01
    ♥ Do have faith in what you're doing.