Exemplo n.º 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/(.*)/(.*)/')
Exemplo n.º 2
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?lockerz.com"
Exemplo n.º 3
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?twitpic.com"
Exemplo n.º 4
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?(twimg.com|pic.twitter.com)"
Exemplo n.º 5
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?via.me"
Exemplo n.º 6
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?via.me"
Exemplo n.º 7
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?twitpic.com"
Exemplo n.º 8
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?(twimg.com|pic.twitter.com)"
Exemplo n.º 9
0
 def __init__(self):
     PreviewMediaService.__init__(self)
     self.url_pattern = "(http(s)?://)?lockerz.com"