예제 #1
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?flic.kr"
     self.xml_pattern = re.compile(
         r'''label="Original"\s
                                   width="(.*)"\s  # The width of the image
                                   height="(.*)"\s # The height of the image
                                   source="(.*)"\s # Image's source
                                   url="(.*)"\s    # The URL
                                   media="(.*)"''', re.VERBOSE)
     self.resp_pattern = re.compile('/photos/(.*)/(.*)/')
예제 #2
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?lockerz.com"
예제 #3
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?twitpic.com"
예제 #4
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?(twimg.com|pic.twitter.com)"
예제 #5
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?via.me"
예제 #6
0
파일: viame.py 프로젝트: pnael/Python
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?via.me"
예제 #7
0
파일: twitpic.py 프로젝트: pnael/Python
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?twitpic.com"
예제 #8
0
파일: pictwitter.py 프로젝트: pnael/Python
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?(twimg.com|pic.twitter.com)"
예제 #9
0
파일: lockerz.py 프로젝트: pnael/Python
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?lockerz.com"