推荐学习书目
› 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
lc4t
V2EX  ›  Python

看到好多爬虫于是我也写了个爬 tumblr 的来骗回复和 star,丢 API

  •  
  •   lc4t · Oct 29, 2016 · 3801 views
    This topic created in 3629 days ago, the information mentioned may be changed or developed.

    https://github.com/lc4t/tumblr_download

    刚刚无聊写的0.0 可以挂着爬一波了。。

    pip3 install lxml gevent PySocks
    

    Usage: tumblr.py [options]
    
    Options:
      -h, --help            show this help message and exit
      -s SITES, --sites=SITES
                            sites split with ',', example:2013117,66666
      --type=TYPE           [photo|video|both]
      --thread=THREAD       threads
    

    can be changed in source file:
    RETRY: retry times, default 1
    PROXY: because G.F.W must use proxy
    TIMEOUT: time to wait net IO
    

    example:
      python3 tumblr.py -s 2013117,66666 --type=both --thread=10
    

    API:
      http://{site}.tumblr.com/api/read?type={photo|video}&num={pagesize}&start={start}
    

    居然有蚊子,还没被冻死。。成都今天好冷

    3 replies  •  2016-10-29 17:08:59 +08:00
    TKKONE
        1
    TKKONE  
    PRO
       Oct 29, 2016 via iPhone
    你进小黑屋了,比我晚发的帖子,反而时间比我还早
    lc4t
        2
    lc4t  
    OP
       Oct 29, 2016 via iPhone
    @tumbzzc 啊?
    lc4t
        3
    lc4t  
    OP
       Oct 29, 2016 via iPhone
    收藏比回复多系列..
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2500 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:09 · PVG 14:09 · LAX 23:09 · JFK 02:09
    ♥ Do have faith in what you're doing.