for post in posts:
    if st:break
    post['author']=authors[post['author']]['name']
    code=SWG_CODE
    for k,v in post.items():
        code=code.replace("%"+k+"_I%",str(v))
    if o.SAVEIMG:
        if o.WWW==None:
            print "[X] -w REQUIRED"
            st=True
            break
        else:
            parser=ParseImages()
            parser.feed(code)
            parser.close()
            for img in parser.getImgs():
                dl=o.WWW+"/"+img if not o.WWW in img else img
                name=str(time.time())+"_import"+os.path.splitext(img)[1]
                dest="images/"+name
                code=code.replace(img,"/"+dest)
                print "[!] Downloading "+dl+" in "+dest+"..."
                urllib.urlretrieve(dl,dest)
                print "[O] Done."
    nc=""
    i=0
    for c in code:
        nc+=c
        i+=1
        if i==o.BREAK:
            nc+="<break>"
    code=nc