Flake8
This commit is contained in:
		
							parent
							
								
									cb4a3fe598
								
							
						
					
					
						commit
						4238812a51
					
				| @ -65,7 +65,7 @@ def response(resp): | |||||||
| 
 | 
 | ||||||
|         title = link.attrib.get('t1') |         title = link.attrib.get('t1') | ||||||
|         ihk = link.attrib.get('ihk') |         ihk = link.attrib.get('ihk') | ||||||
|          | 
 | ||||||
|         #url = 'http://' + link.attrib.get('t3') |         #url = 'http://' + link.attrib.get('t3') | ||||||
|         url = yaml_data.get('surl') |         url = yaml_data.get('surl') | ||||||
|         img_src = yaml_data.get('imgurl') |         img_src = yaml_data.get('imgurl') | ||||||
|  | |||||||
| @ -43,7 +43,7 @@ def response(resp): | |||||||
|         return [] |         return [] | ||||||
| 
 | 
 | ||||||
|     dom = html.fromstring(resp.text) |     dom = html.fromstring(resp.text) | ||||||
|      | 
 | ||||||
|     regex = re.compile('\/200H\/') |     regex = re.compile('\/200H\/') | ||||||
| 
 | 
 | ||||||
|     # parse results |     # parse results | ||||||
|  | |||||||
| @ -74,7 +74,7 @@ def response(resp): | |||||||
| # For a bigger thumbnail, keep only the url_z, not the url_n | # For a bigger thumbnail, keep only the url_z, not the url_n | ||||||
|         if 'n' in photo['sizes']: |         if 'n' in photo['sizes']: | ||||||
|             thumbnail_src = photo['sizes']['n']['displayUrl'] |             thumbnail_src = photo['sizes']['n']['displayUrl'] | ||||||
|         elif 'z'  in photo['sizes']: |         elif 'z' in photo['sizes']: | ||||||
|             thumbnail_src = photo['sizes']['z']['displayUrl'] |             thumbnail_src = photo['sizes']['z']['displayUrl'] | ||||||
|         else: |         else: | ||||||
|             thumbnail_src = img_src |             thumbnail_src = img_src | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Cqoicebordel
						Cqoicebordel