Skip to content

Instantly share code, notes, and snippets.

@ityoung
Created June 25, 2018 11:05
Show Gist options
  • Save ityoung/43ec7b4e96d7b3048c2ad0ea43f13546 to your computer and use it in GitHub Desktop.
Save ityoung/43ec7b4e96d7b3048c2ad0ea43f13546 to your computer and use it in GitHub Desktop.
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