OSDN Git Service

all implement done: fetch_sfjpmag.py
authorhylom <hylom@users.sourceforge.jp>
Tue, 10 Nov 2009 10:14:09 +0000 (19:14 +0900)
committerhylom <hylom@users.sourceforge.jp>
Tue, 10 Nov 2009 10:14:09 +0000 (19:14 +0900)
fetch_sfjpmag.py

index 97811e4..af4fba9 100644 (file)
@@ -80,6 +80,10 @@ class SfjpMagFetcher(spyder.Spyder):
         f.write(data)
         f.close()
 
+        # get attachments
+        for src in self.extract_imgs(data, url):
+            if self._url_rex_img.search(src):
+                self._save_attachment(src)
 
     def prepare_output_dir(self, dir):
         if not os.path.exists(dir):