Added manga-py source

This commit is contained in:
2019-12-14 22:33:14 -05:00
parent 9a4dd4b09b
commit 45067caea6
420 changed files with 18054 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
from json import loads
from requests import get
from os import system, path
_path = path.dirname(path.dirname(path.realpath(__file__)))
all_manga_list = None
n = 0
while n < 10:
try:
all_manga_list = loads(get('http://inmanga.com/OnMangaQuickSearch/Source/QSMangaList.json').text)
break
except Exception:
pass
n += 1
if not all_manga_list:
print('Error! QSMangaList is not correct json?')
for i in all_manga_list:
print('Downloading %s' % i['Name'])
_str = 'cd {}; python3 manga.py --cli -i -u http://inmanga.com/ver/manga/{}/{}'
system(_str.format(_path, i['Name'], i['Name'], i['Identification']))