skipping the event suggestions thread
This commit is contained in:
		
							parent
							
								
									61c173ccaa
								
							
						
					
					
						commit
						a44176ceba
					
				@ -30,7 +30,7 @@ class unloze_spider(scrapy.Spider):
 | 
				
			|||||||
        newest_thread = None
 | 
					        newest_thread = None
 | 
				
			||||||
        threads = response.xpath("//div[@class='structItem-title']/@uix-href").extract()
 | 
					        threads = response.xpath("//div[@class='structItem-title']/@uix-href").extract()
 | 
				
			||||||
        for thread in threads:
 | 
					        for thread in threads:
 | 
				
			||||||
            if "poll" in thread.lower() or "nomination-thread" in thread.lower():
 | 
					            if "poll" in thread.lower() or "nomination-thread" in thread.lower() or "events-suggestion-thread" in thread.lower():
 | 
				
			||||||
                continue
 | 
					                continue
 | 
				
			||||||
            newest_thread = thread
 | 
					            newest_thread = thread
 | 
				
			||||||
            break
 | 
					            break
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user