Files
zulip/zerver/lib/url_preview/parsers/base.py
rht 3f4bf2d22f zerver/lib: Use python 3 syntax for typing.
Extracted from a larger commit by tabbott because these changes will
not create significant merge conflicts.
2017-11-21 20:56:40 -08:00

11 lines
258 B
Python

from typing import Any, Text
from bs4 import BeautifulSoup
class BaseParser:
def __init__(self, html_source: Text) -> None:
self._soup = BeautifulSoup(html_source, "lxml")
def extract_data(self) -> Any:
raise NotImplementedError()