Created
June 25, 2018 11:05
-
-
Save ityoung/43ec7b4e96d7b3048c2ad0ea43f13546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def save_img(path, url): | |
pass | |
def update_path(): | |
pass | |
def get_img_url(url): | |
pass | |
def get_page_num(): | |
pass | |
def main(): | |
base_domain = '' | |
total_page = get_page_num() | |
for page_num in range(total_page): | |
path = update_path() | |
page_url = base_domain + page_num | |
img_url_list = get_img_url(page_url) | |
for img_url in img_url_list: | |
save_img(path, img_url) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment