equal
deleted
inserted
replaced
13 and directory as second arg |
13 and directory as second arg |
14 ''' |
14 ''' |
15 directory = './scrapESO/' |
15 directory = './scrapESO/' |
16 imgloturl = 'https://www.eso.org/public/france/images/viewall/list/' |
16 imgloturl = 'https://www.eso.org/public/france/images/viewall/list/' |
17 img_url_patterns = [ |
17 img_url_patterns = [ |
18 ('https://cdn.eso.org/images/publicationjpg/{imgid}.jpg', '{imgid}.jpg') |
18 ('https://cdn.eso.org/images/publicationjpg/{imgid}.jpg', '{imgid}.jpg'), |
19 ('https://cdn.eso.org/images/large/{imgid}.jpg', '{imgid}.jpg') |
19 ('https://cdn.eso.org/images/large/{imgid}.jpg', '{imgid}.jpg') |
20 ] |
20 ] |
21 try: |
21 try: |
22 opts, args = getopt.getopt(argv, "hd:u:", ["dir=","url="]) |
22 opts, args = getopt.getopt(argv, "hd:u:", ["dir=","url="]) |
23 except getopt.GetoptError: |
23 except getopt.GetoptError: |