Added manga-py source
This commit is contained in:
22
manga-py-stable_1.x/helpers/animextremist_com.py
Normal file
22
manga-py-stable_1.x/helpers/animextremist_com.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from requests import get
|
||||
from os import system, path
|
||||
from lxml.html import document_fromstring
|
||||
|
||||
_path = path.dirname(path.dirname(path.realpath(__file__)))
|
||||
|
||||
all_manga_list = None
|
||||
n = 0
|
||||
base_path = 'http://animextremist.com/mangas-online/'
|
||||
while n < 10:
|
||||
try:
|
||||
all_manga_list = document_fromstring(get(base_path)).cssselect('li > a + a')
|
||||
break
|
||||
except Exception:
|
||||
pass
|
||||
n += 1
|
||||
|
||||
for i in all_manga_list:
|
||||
href = i.get('href')
|
||||
print('Downloading %s' % href)
|
||||
_str = 'cd {}; python3 manga.py --cli -i -u {}'
|
||||
system(_str.format(_path, href))
|
||||
Reference in New Issue
Block a user