data/script/scrapeso.py
changeset 6 7e15a917d940
parent 3 16fb4f5efa69
child 7 a40fd3990850
equal deleted inserted replaced
5:9f857d8ac327 6:7e15a917d940
    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: