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

Python 爬虫萌新遇到一个问题 0.0?求助

  •  
  •   ChenJinluo · Jan 3, 2018 · 2405 views
    This topic created in 3243 days ago, the information mentioned may be changed or developed.
    Python 爬虫新手一枚,想试试爬电影天堂的某个页面的电影下载链接,结果遇到个问题。由于我是新加入的连图片链接都发不了,所以我在知乎上提了问: https://www.zhihu.com/question/265036906
    Liyuu
    Liyuu
    Jan 4, 2018
    1
    这个迅雷连接就是那个 ftp 连接用 base64 转换一下,其实不用抓。你用你抓到的 ftp 连接转换就行,以下是转换方法:
    '''
    import base64
    ftp_link = 'ftp://ygdy8:[email protected]:7082/[阳光电影 www.ygdy8.net].全球风暴.HD.720p.韩版中英双字幕.rmvb'

    link = 'AA' + ftp_link + 'ZZ'
    link = base64.b64encode(link.encode("utf-8"))
    link = 'thunder://' + link.decode("utf-8")
    print (link)

    '''
    Liyuu
    Liyuu
    Jan 4, 2018❤️1
    2
    不知道怎么插代码,试一下
    <script src="https://gist.github.com/liyuuuu/fa6492fb33b74632898ab793f1c27f1e.js"></script>
    ChenJinluo
    ChenJinluo
    OP
    Jan 4, 2018
    3
    @Liyuu 非常感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1200 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:43 · PVG 01:43 · LAX 09:43 · JFK 12:43
    ♥ Do have faith in what you're doing.