2-3

db_urls = [item['url'] for item in url_list.find()]     
index_urls = [item['url'] for item in item_info.find()] 
x = set(db_urls)                                        
y = set(index_urls)
rest_of_urls = x-y 

你可能感兴趣的:(2-3)