Exemplo n.º 1
0
 def __init__(self, site_queue, sublink_queue):
     BaseThread.__init__(self)
     self.site_queue = site_queue
     self.sublink_queue = sublink_queue
     self.wallsite = 'http://alpha.wallhaven.cc/wallpaper/'
     self.pattern = r'<a class="preview" href="http://alpha.wallhaven.cc/wallpaper/(\d*)"'
     self.sub_pattern = r'<img src="(.*)" class="wall stage1 wide">'
Exemplo n.º 2
0
 def __init__(self, in_queue, out_queue):
     BaseThread.__init__(self)
     self.in_queue = in_queue
     self.out_queue = out_queue
     self.pattern = r'\s*<img id="wallpaper"\s*src="//(.*)"'