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