removed unnecessary todo
This commit is contained in:
		
							parent
							
								
									0625086b4c
								
							
						
					
					
						commit
						e48ce83b02
					
				
							
								
								
									
										1
									
								
								main.py
								
								
								
								
							
							
						
						
									
										1
									
								
								main.py
								
								
								
								
							| 
						 | 
					@ -54,7 +54,6 @@ def extract_toot(toot):
 | 
				
			||||||
	soup = BeautifulSoup(toot, "html.parser")
 | 
						soup = BeautifulSoup(toot, "html.parser")
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	# this is the code that removes all mentions
 | 
						# this is the code that removes all mentions
 | 
				
			||||||
	# TODO: make it so that it removes the @ and instance but keeps the name
 | 
					 | 
				
			||||||
	for mention in soup.select("span.h-card"):
 | 
						for mention in soup.select("span.h-card"):
 | 
				
			||||||
		mention.a.unwrap()
 | 
							mention.a.unwrap()
 | 
				
			||||||
		mention.span.unwrap()
 | 
							mention.span.unwrap()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue