Code Monkey home page Code Monkey logo

ftpdownload's Introduction

FTPDownload

Coverage Status

LittleKey

I've special develop document.

Requirements

Python 2.6 (or more later include 3.x)
lftp (need cygwin for windows)

Usage

更多设置见FTPDownload --help

FTPDownload.py AnimeName [moreAnimeName]

动画名, 使用正则表达式匹配。会下载所有匹配的文件。 可以输入多个,并附带(FTP上)目录名。目录名默认为'.'

p.s: basename尚不能使用 '', '\w', '\d' 等正则表达式字符. dirname不支持正则表达式.

ftpinfo.json

用于提供ftp的信息,如果没有提供这个文件则会从标准输入获取 使用json格式 e.g:

{
    "host": "ftp://ftp.abc.com:21",
    "user": "account",
    "passwd": "password",
    "ssh": ""
}

New Version(4.x)

添加 '-n' 参数使用新版本

支持任意python的正则表达式, dirname也支持正则表达式 使用 r'/' or r'\' 分隔目录 建议使用源字符串输入正则表达式

目录名默认为'/'

其他的用法相同, 占用的系统资源或许比旧版本多. 不再使用线程锁, 所以会多lftp并发估计是个异步IO(但是貌似有阻塞啊)


ChangeLog

v0.1: first release.

v0.2: fix code struct.

v0.3: update interactive.

v0.4: add ts download dir setting,I've special input passwd technique. update~

v0.5: add '-t' argument, add it when you want to select whice TV.

v1.0: debug: if TS's filename have TV, but not select TV in args that will don't download anything.

v1.1: code refactoring.

v1.2: fix some bug.

v2.0: code refactoring.

v2.1: i'm forgot it...

v2.2: add lftp check...if you use this software in windows, you'll must set lftp's dir in settings.py file.

v3.0: 3rd code refactoring....

v3.1: 4th code refactoring...

v3.2: add Download class, support any filenames input.

v3.3: from settings.py file move lftp command to lftp.json file. update lftp env_set.
remove LOG_Filename and CONF_Filename settings, remove FTP_FileList_Dir setting. update Processor.

v3.4: update settings.

v3.5 update...

v4.0 suppoer any python's RE, and add dirname support RE, maybe it isn't support Python3.

v4.1 add python3 support.

v4.2 use argparse library.

v4.3 add windows support and add multiple thread download, and add r'\\' split directory name.

ftpdownload's People

Contributors

littlekey avatar yumemichi avatar

Watchers

 avatar  avatar  avatar

ftpdownload's Issues

无法检测到在轮询过程中更新的文件

看上去像是只在开始运行时获取了一次文件列表, 之后就一直以这个列表来判断...
如果在在软件执行过程中FTP文件有更新 软件无法发现...

如果在文件更新过后, 关闭软件再执行则可以正常检查到文件

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.