mirror of https://github.com/zulip/zulip.git
14 lines
341 B
Python
14 lines
341 B
Python
from __future__ import absolute_import
|
|
from typing import Any, Text
|
|
from bs4 import BeautifulSoup
|
|
|
|
|
|
class BaseParser(object):
|
|
def __init__(self, html_source):
|
|
# type: (Text) -> None
|
|
self._soup = BeautifulSoup(html_source, "lxml")
|
|
|
|
def extract_data(self):
|
|
# type: () -> Any
|
|
raise NotImplementedError()
|