猫史档案馆


IedAnime(console version)核心组件编写完成

用户:成熟的胆小菇kKFL成熟的胆小菇kKFL查看:0 回复:3 评论:0 创建时间:2021-02-17T12:35:42


IedAnime

iAnime系列

简介

IedAnime, 用于下载带有英文字幕的动漫。如果您喜欢动漫,并且有喵学习好英语,那么不妨试试IedAnime。
IedAnime下载的所有动漫都带有英文字幕或配音,不带有中文字幕。
本程序下载无需喵,并且无广告,无付费项。

注意
  1. 此处提供的是IedAnime的源代码,程序将在命令行环节中运行。为保证程序运行效果最佳,请全屏运行本程序(程序启动时,窗口会自动全屏化)
  2. 本程序使用 Python 3 编写,为了顺利运行,请确保您的Python解释器已经安装了以下库:
    • Pillow
    • colorama
    • requests
    • python-opencv
    • numpy
    • pywin32
    • lxml
  3. 本程序支持在Windows环境中运行。
  4. 本程序是半成品,只完成了最核心部分。
使用 启动

打开命令行,进入和console.py同一路径的环境
输入以下指令并回车即可启动程序

console.py

若启动成功,您将在控制台在看到如下输出: (这被称之为“首页”)

********************************************************************************
*                                                                              *
*                             Welcome to IedAnime!                             *
*                                                                              *
*                                                                              *
*        [1] Search by Keyword               [2] Search by genres              *
*        [3] Random anime                    [4] Popular anime                 *
*        [5] Latest episode                  [6] Ongoing anime                 *
*        [7] Latest anime                    [8] Winter 2021                   *
*                                                                              *
*        [a] Download manager                [b] User Center                   *
*        [c] Message                         [d] About IedAnime                *
*                                                                              *
*        Use command "/exit" to exit                                           *
*                                                                              *
********************************************************************************
[*] Enter the index or the command to start the next step
>?

启动成功后,命令行窗口会变为全屏。为保证程序运行效果最佳,请全屏运行本程序。

搜索

         启动程序后,输入以下字符并回车即可进入搜索模式:

1

回车后,您将在控制台在看到如下输出:

********************************************************************************
*                                                                              *
*                      Now you are in <Search by Keyword>                      *
*                                                                              *
*        Use command "/exit" to exit                                           *
*        Use command "/home" to back to home page                              *
*        Use command "/search <keyword>" to search by keyword                  *
*                                                                              *
********************************************************************************

Enter your command or keyword:
>?

输入 /exit 以退出程序
输入 /home 以返回首页
输入 /search <关键词> 以对指定的关键词进行搜索
"<"">"注意:输入指令时,关键词两侧的"<"与">"不必输入
"<"">"输入任何指令时,参数两侧的"<"与">"都不必输入

搜索结果

正确发起搜索后,由于网速原因,您可能需要短暂等待一些时间
这里以搜索 life in 作为例子
输入以下字符并回车:/search life in
短暂等待后,您将在控制台在看到如下输出:

********************************************************************************
*                                                                              *
*                      Now you are in <Search by Keyword>                      *
*                                                                              *
*                               Keyword: life in                               *
*                                                                              *
*        Use command "/exit" to exit                                           *
*        Use command "/home" to back to home page                              *
*        Use command "/page <page num>" to jump to certain page                *
*        Use command "/view <index>" to view a certain anime                   *
*        Use command "/cover <index>" to view a certain anime                  *
*                                                                              *
********************************************************************************


********************************************************************************
*                                                                              *
*                               Search    Result                               *
*                                                                              *
*                                                                              *
*        [0] Re:Zero kara Hajimeru Isekai Seikatsu                             *
*                                                                              *
*        [1] Re:Zero kara Hajimeru Isekai Seikatsu 2nd Season                  *
*                                                                              *
*        [2] Re:Zero kara Hajimeru Isekai Seikatsu 2nd Season Part 2           *
*                                                                              *
*        [3] Re:Zero kara Hajimeru Isekai Seikatsu - Memory Snow               *
*                                                                              *
*        [4] Itai no wa Iya nano de Bougyoryoku ni Kyokufuri Shitai to Omoimasu.*
*                                                                              *
*        [5] No Game No Life                                                   *
*                                                                              *
*                                                                              *
*                                   Page: 1                                    *
*                                                                              *
********************************************************************************

Enter your command:
>?

输入 /exit 以退出程序
输入 /home 以返回首页
输入 /page <页码> 以获取其他页面的信息
输入 /view <索引> 以获取对应动漫的详细信息并下载
输入 /cover <索引> 以查看对应动漫的封面图片

搜索结果翻页

在搜索结果展示页面,输入 /page <页码> 以获取其他页面的信息
这里以翻至 第4面 为例
输入/page 4
若第4面存在,您将在控制台在看到如下输出:

********************************************************************************
*                                                                              *
*                      Now you are in <Search by Keyword>                      *
*                                                                              *
*                               Keyword: life in                               *
*                                                                              *
*        Use command "/exit" to exit                                           *
*        Use command "/home" to back to home page                              *
*        Use command "/page <page num>" to jump to certain page                *
*        Use command "/view <index>" to view a certain anime                   *
*        Use command "/cover <index>" to view a certain anime                  *
*                                                                              *
********************************************************************************


********************************************************************************
*                                                                              *
*                               Search    Result                               *
*                                                                              *
*                                                                              *
*        [18] InuYasha: Kanketsu-hen                                           *
*                                                                              *
*        [19] Toaru Kagaku no Accelerator                                      *
*                                                                              *
*        [20] Yagate Kimi ni Naru                                              *
*                                                                              *
*        [21] Inuyashiki                                                       *
*                                                                              *
*        [22] Inu x Boku SS                                                    *
*                                                                              *
*        [23] No Guns Life                                                     *
*                                                                              *
*                                                                              *
*                                   Page: 4                                    *
*                                                                              *
********************************************************************************

Enter your command:
>?

4注意:若第4面不存在,程序将不会报错,您将在控制台在看到如下输出:

********************************************************************************
*                                                                              *
*                      Now you are in <Search by Keyword>                      *
*                                                                              *
*                               Keyword: life in                               *
*                                                                              *
*        Use command "/exit" to exit                                           *
*        Use command "/home" to back to home page                              *
*        Use command "/page <page num>" to jump to certain page                *
*        Use command "/view <index>" to view a certain anime                   *
*        Use command "/cover <index>" to view a certain anime                  *
*                                                                              *
********************************************************************************


********************************************************************************
*                                                                              *
*                               Search    Result                               *
*                                                                              *
*                                                                              *
*                                                                              *
*                                   Page: 4                                    *
*                                                                              *
********************************************************************************

Enter your command:
>?
显示动漫详情

在搜索结果展示页面,输入 /view <索引> 以获取对应动漫的详细信息并下载
这里以索引为0的动漫为例
输入/view 0
这可能需要短暂的时间,请耐心等待
短暂等待后,您将在控制台在看到如下输出:

********************************************************************************
*                                                                              *
*                             Now you are in <View>                            *
*                                                                              *
*                 Anime: Re:Zero kara Hajimeru Isekai Seikatsu                 *
*                                                                              *
*        Use command "/exit" to exit                                           *
*        Use command "/home" to back to home page                              *
*        Use command "/download <index>" to download a certain episode         *
*        Use command "/download <index1>, <index2>" to download episodes       *
*                                                                              *
********************************************************************************

********************************************************************************
*                                                                              *
*        Anime: Re:Zero kara Hajimeru Isekai Seikatsu                          *
*        Genres: Drama, Fantasy,                                               *
*        Rating: Everyone                                                      *
*        Status: Finished                                                      *
*        type: TV Series                                                       *
*        First aired: Apr 03, 2016                                             *
*        Description:                                                          *
*             Suddenly, high school student Subaru Natsuki has been            *
*            summoned to another world on the way back from the                *
*            convenience store. With the biggest crisis of his life being      *
*            summoned to another world, and with no sign of the one who        *
*            summoned him, things become even worse when he is attacked.       *
*            But when he is saved by a mysterious, silver-haired girl          *
*            with a fairy cat, Subaru cooperates with her to return the        *
*            favor. When they finally manage to get a clue, Subaru and         *
*            the girl are attacked and killed by someone. Subaru then          *
*            awakens in the place he was summoned and notices he gained        *
*            the ability "Returns by Death" and has become a helpless boy      *
*            that only has the ability to rewind time by dying. Beyond         *
*            the despair, can he save the girl from the fate of death?         *
*                                                                              *
********************************************************************************

********************************************************************************
*                                                                              *
*                                   Episodes                                   *
*                                                                              *
*        [0] Episode 1A                                                        *
*               Released on 03 Apr, 2016                                       *
*                                                                              *
*        [1] Episode 1B                                                        *
*               Released on 06 Apr, 2016                                       *
*                                                                              *
*        [2] Episode 1.5                                                       *
*               Released on 08 Sep, 2016                                       *
*                                                                              *
*        [3] Episode 2                                                         *
*               Released on 10 Apr, 2016                                       *
*                                                                              *
*        [4] Episode 3                                                         *
*               Released on 17 Apr, 2016                                       *
*                                                                              *
*        [5] Episode 4                                                         *
*               Released on 24 Apr, 2016                                       *
*                                                                              *
*        [6] Episode 5                                                         *
*               Released on 01 May, 2016                                       *
*                                                                              *
*        [7] Episode 6                                                         *
*               Released on 08 May, 2016                                       *
*                                                                              *
*        [8] Episode 7                                                         *
*               Released on 15 May, 2016                                       *
*                                                                              *
*        [9] Episode 8                                                         *
*               Released on 22 May, 2016                                       *
*                                                                              *
*        [10] Episode 9                                                        *
*               Released on 29 May, 2016                                       *
*                                                                              *
*        [11] Episode 10                                                       *
*               Released on 06 Jun, 2016                                       *
*                                                                              *
*        [12] Episode 11                                                       *
*               Released on 12 Jun, 2016                                       *
*                                                                              *
*        [13] Episode 12                                                       *
*               Released on 19 Jun, 2016                                       *
*                                                                              *
*        [14] Episode 13                                                       *
*               Released on 26 Jun, 2016                                       *
*                                                                              *
*        [15] Episode 14                                                       *
*               Released on 07 Jul, 2016                                       *
*                                                                              *
*        [16] Episode 15                                                       *
*               Released on 10 Jul, 2016                                       *
*                                                                              *
*        [17] Episode 16                                                       *
*               Released on 17 Jul, 2016                                       *
*                                                                              *
*        [18] Episode 17                                                       *
*               Released on 24 Jul, 2016                                       *
*                                                                              *
*        [19] Episode 18                                                       *
*               Released on 31 Jul, 2016                                       *
*                                                                              *
*        [20] Episode 19                                                       *
*               Released on 07 Aug, 2016                                       *
*                                                                              *
*        [21] Episode 20                                                       *
*               Released on 14 Aug, 2016                                       *
*                                                                              *
*        [22] Episode 21                                                       *
*               Released on 21 Aug, 2016                                       *
*                                                                              *
*        [23] Episode 22                                                       *
*               Released on 28 Aug, 2016                                       *
*                                                                              *
*        [24] Episode 23                                                       *
*               Released on 04 Sep, 2016                                       *
*                                                                              *
*        [25] Episode 24                                                       *
*               Released on 11 Sep, 2016                                       *
*                                                                              *
*        [26] Episode 25                                                       *
*               Released on 18 Sep, 2016                                       *
*                                                                              *
*                                                                              *
********************************************************************************


Enter your command:
>?

输入 /exit 以退出程序
输入 /home 以返回首页 输入 /download <索引> 以下载指定的一集
输入 /download <索引1>, <索引2> 以下载指定的多集
你可以通过 /download 指令下载任意数量的动漫,不局限于 索引1 / 索引2
使用/download <索引1>, <索引2>, <索引3>, <索引4>, <索引N>是有效的
输入时,系统可以识别英文逗号(",")与中文逗号(",");逗号与索引之间的空格数量是无强制要求的

下载

在动漫详情展示页面: 输入 /download <索引> 以下载指定的一集
输入 /download <索引1>, <索引2> 以下载指定的多集
你可以通过 /download 指令下载任意数量的动漫,不局限于 索引1 / 索引2
使用/download <索引1>, <索引2>, <索引3>, <索引4>, <索引N>是有效的
输入时,系统可以识别英文逗号(",")与中文逗号(",");逗号与索引之间的空格数量是无强制要求的
这里举两个例子:
(一)动漫:Clannad: After Story
输入/download 22, 23并回车,您将逐步在控制台看到类似以下信息的输出:

**************************************************


[*] Download request received.
[+] VIDEO_URL = https://st2.anime1.com/[Doki] Clannad After Story - 23 (1280x720 h2喵 BD AAC) [8478529E]_a1.mp4?st=F9_GxvYeuSwGeJLjcAuEvA&e=1613546050
    THREAD_NUM = 512
    OUTPUT_FILE = Clannad  After Story_Episode 23.mp4
[*] CONTENT_LENGTH = 37172159
[*] 512 threads started. (512 in total)
[*] Donwnloading...
downloading... > 100% [####################] (0 threads active, 512 in total) READ_TIMEOUT=2.89  CONNECT_TIMEOUT=3.806
[*] Donwnload completed
[*] Merging...
[*] Completed.


**************************************************


[*] Download request received.
[+] VIDEO_URL = https://st11.anime1.com/[DeadFish] Clannad_ After Story - 24 - Extra [BD][720p][AAC]_a1.mp4?st=a7XVc-cfZJMIyvTDTfrQjw&e=1613546107
    THREAD_NUM = 512
    OUTPUT_FILE = Clannad  After Story_Episode 24.mp4
[*] CONTENT_LENGTH = 42097762
[*] 512 threads started. (512 in total)
[*] Donwnloading...
downloading... > 99% [################### ] (1 threads active, 512 in total) READ_TIMEOUT=3.25  CONNECT_TIMEOUT=3.4211
[*] Donwnload completed
[*] Merging...
[*] Completed.
Press <ENTER> to confirm...
>?

输出完成,使用回车来返回主页

(二)动漫Lucky Star
输入/download 1并回车,您将逐步在控制台看到类似以下信息的输出:

**************************************************


[*] Download request received.
[+] VIDEO_URL = https://st9.anime1.com/LuckyStar02_a1.mp4?st=4n6qkMc_eif4pmqpLO0zrQ&e=1613546254
    THREAD_NUM = 512
    OUTPUT_FILE = Lucky Star_Episode 2.mp4
[*] CONTENT_LENGTH = 34980787
[*] 512 threads started. (512 in total)
[*] Donwnloading...
downloading... > 99% [################### ] (1 threads active, 512 in total) READ_TIMEOUT=2.30  CONNECT_TIMEOUT=3.5561
[*] Donwnload completed
[*] Merging...
[*] Completed.
Press <ENTER> to confirm...
>?
 

输出完成,使用回车来返回主页

展示封面

在搜索结果展示页面,输入 /cover <索引> 以查看对应动漫的封面图片
若指令生效,会将控制台字号调整至5,并以彩色字符画形式绘制图片(图片不会变形)
绘制图片需要短暂的时间,请耐心等待 绘制完成后,按下回车键以回到搜索结果展示页面

有关程序
距离正式版本仍需完成以下功能的编写
  1. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> Search by Genres
  2. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> Random Anime
  3. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> Popular Anime
  4. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> Latest Episode
  5. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> Ongoing Anime
  6. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> Latest Anime
  7. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> User Center
  8. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> Message
  9. <input class="task-list-item-checkbox" disabled="disabled" type="checkbox"> About IedAnime
更新记录 2021/2/17
  1. 添加了readme文件
  2. 修改了部分输出文字
写在最后的

以上就是有关IedAnime的说明。
IedAnime 仍是半成品。目前只完成了核心组件的编写。
感谢您的选择。


回复

上一页1 页 / 共 1下一页
成熟的胆小菇kKFL成熟的胆小菇kKFL

查看带有格式的自述文件: https://gitee.com/xi_chen_porridge/ied-anime

点赞0


评论


成熟的胆小菇kKFL成熟的胆小菇kKFL

https://喵gitee.com/xi_chen_porridge/ied-anime

点赞0


评论


成熟的胆小菇kKFL成熟的胆小菇kKFL

把 喵 去掉

点赞0


评论