download image from flickr.com

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • He Jibo

    download image from flickr.com

    Dear Pythoners,

    Could you please help me look at a code, which is to download image
    from flickr.com? I wish to download images from flickr.com
    automatically. You can get the code at
    http://cid-bbc15003189d7799.skydrive...FImageCrawl.py.
    There is still some problem with the code. I do not know much about
    regular expression. There seems to be something wrong with the line of
    "compile_ob j = re.compile(r'dy n.Img\(".*?",". *?",".*?","(.*? )"')".
    Could you please help me debug it? And I aslo hope to download the
    first 10 pages of the images, how can I do this?

    Thank you so much ! Good night!

    He Jibo
    hejibo@gmail.co m
    jibohe2@cyrus.p sych.uiuc.edu


    ---------------------------
    He Jibo
    Department of Psychology,
    Beckman Institute for Advanced Science and Technology
    University of Illinois, Urbana Champaign,
    603 East Daniel St.,
    Champaign, IL 61820
    Tel: 217-244-4461(office)
    217-244-6763(lab)
    Email: hejibo@gmail.co m
    Yogi Berra - "Half the lies they tell about me aren't true."
  • Justin Ezequiel

    #2
    Re: download image from flickr.com

    ##compile_obj = re.compile(r'dy n.Img\(".*?",". *?",".*?","(.*? )"')
    compile_obj = re.compile(r'\< img src="([^"]+?)"')

    Comment

    Working...