Feat: download in main file
This commit is contained in:
@@ -1 +1,4 @@
|
||||
from anixarttierlist.api import download_image, get_image_url
|
||||
from anixarttierlist.group import group_by_common_part
|
||||
from anixarttierlist.prepare import prepare
|
||||
from anixarttierlist.tools import add_url_to_file
|
||||
|
||||
6
anixarttierlist/prepare.py
Normal file
6
anixarttierlist/prepare.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import os
|
||||
|
||||
|
||||
def prepare():
|
||||
if not os.path.exists('./temp'):
|
||||
os.mkdir('./temp')
|
||||
3
anixarttierlist/tools.py
Normal file
3
anixarttierlist/tools.py
Normal file
@@ -0,0 +1,3 @@
|
||||
def add_url_to_file(url: str, path: str = './temp/urls.txt'):
|
||||
with open(path, 'a+') as file:
|
||||
file.write(url+'\n')
|
||||
Reference in New Issue
Block a user