<filename>src/scrapers/workers/stockreport_gv.py<gh_stars>0
'''
@author: oluiscabral
'''
from scrapers.interfaces.scraper_component import ScraperComponent
from data_structure.data import Data
from typing import Set
from selenium.webdriver.remote.webdriver import WebDriver
from scrapers import common
from data_structure.data_ref import DataRef


class StockReportGV(ScraperComponent):
    def __init__(self, name: str):
        ScraperComponent.__init__(self, name)

    def scrap(self, wd: WebDriver, ref: DataRef) -> Set[Data]:
        data = common.init_data('Growth & Value', self.name, wd, ref)
        tables = wd.find_elements_by_css_selector("stockreport-ratios.valueComp table")
        for table in tables:
            common.DataWithProgressBar.scrap(data, table)
        return {data}

<filename>src/scrapers/workers/stockreport_gv.py<gh_stars>0
'''
@author: oluiscabral
'''
from scrapers.interfaces.scraper_component import ScraperComponent
from data_structure.data import Data
from typing import Set
from selenium.webdriver.remote.webdriver import WebDriver
from scrapers import common
from data_structure.data_ref import DataRef


class StockReportGV(ScraperComponent):
    def __init__(self, name: str):
        ScraperComponent.__init__(self, name)

    def scrap(self, wd: WebDriver, ref: DataRef) -> Set[Data]:
        data = common.init_data('Growth & Value', self.name, wd, ref)
        tables = wd.find_elements_by_css_selector("stockreport-ratios.valueComp table")
        for table in tables:
            common.DataWithProgressBar.scrap(data, table)
        return {data}

@author: oluiscabral