mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			251 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			251 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from typing import Any
 | 
						|
from bs4 import BeautifulSoup
 | 
						|
 | 
						|
 | 
						|
class BaseParser:
 | 
						|
    def __init__(self, html_source: str) -> None:
 | 
						|
        self._soup = BeautifulSoup(html_source, "lxml")
 | 
						|
 | 
						|
    def extract_data(self) -> Any:
 | 
						|
        raise NotImplementedError()
 |