Git Product home page Git Product logo

thunder_usdrama's Introduction

thunder_usdrama

自动抓取字幕组热门美剧并加入迅雷远程下载

系统需要

1、python2、python3共存

2、python3安装lxml

使用说明

1、在config.py中修改username、password为迅雷账号密码,修改mydir为py文件所在目录

2、运行python3 scan.py即可

原理说明

1、脚本抓取字幕组一周排行榜( http://www.zimuzu.tv/html/top/week.html )内容,将本周收藏和浏览最多的剧两榜求交集,即为下载的美剧清单,获取下载链接后调取迅雷远程api加入下载队列;

2、若有关注的美剧,可在dramas.py中将剧的id加入到self.watchlist;

3、网页分析部分用python3实现,迅雷远程部分用python2实现;

4、yc_api、verification_code.py从其他项目中获得(具体项目追溯不到了),水平不够未成功转为python3版本(这也是本脚本要双版本python的原因),但其中的登录部分已经失效,进行了重写;

5、如果你的python2启动命令不是默认的"python",请修改scan.py中call_thunder函数的cmd

thunder_usdrama's People

Contributors

tylor-e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

thunder_usdrama's Issues

出现IndexError: list index out of range

Traceback (most recent call last):
File "scan.py", line 61, in
a.run()
File "scan.py", line 39, in run
data = self.drama_links(drama)
File "scan.py", line 19, in drama_links
return DramaDetail(id).get_download_html()
File "/root/usdrama/drama.py", line 30, in get_download_html
html = urlread().urlread(self.get_downlad_page())
File "/root/usdrama/drama.py", line 21, in get_downlad_page
div = page.xpath(u"//div[@Class='view-res-list']")[1]
IndexError: list index out of range

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.