Rewards2/Dhanny_reward2/run.py
def scrape_rows(self):
        """
        Scrapes the data on a page
        """
        rows = self.browser.find_elements_by_css_selector('div.master > div.root > div > div:nth-child(3) > div > div > div > div > div.table-responsive > table > tbody > tr.row.styles_item__L_bVx')
        for row in rows:
            fromAddress = row.find_element_by_xpath('.//td[5]/span') if self.check_exists(row, './/td[5]/span') else row.find_element_by_xpath('.//td[5]/a')
            toAddress = row.find_element_by_xpath('.//td[6]/span') if self.check_exists(row, './/td[6]/span') else row.find_element_by_xpath('.//td[6]/a')
            amount = row.find_element_by_xpath('.//td[4]/span') if self.check_exists(row, './/td[4]/span') else row.find_element_by_xpath('.//td[4]/a')
            self.all_data.append({"from": fromAddress.text, "to": toAddress.text, "amount": amount.text})

        Scrapes the data on a page
        
Scrapes the data on a page
Scrapes the data on a page
def scrape_rows(self):
        rows = self.browser.find_elements_by_css_selector('div.master > div.root > div > div:nth-child(3) > div > div > div > div > div.table-responsive > table > tbody > tr.row.styles_item__L_bVx')
        for row in rows:
            fromAddress = row.find_element_by_xpath('.//td[5]/span') if self.check_exists(row, './/td[5]/span') else row.find_element_by_xpath('.//td[5]/a')
            toAddress = row.find_element_by_xpath('.//td[6]/span') if self.check_exists(row, './/td[6]/span') else row.find_element_by_xpath('.//td[6]/a')
            amount = row.find_element_by_xpath('.//td[4]/span') if self.check_exists(row, './/td[4]/span') else row.find_element_by_xpath('.//td[4]/a')
            self.all_data.append({"from": fromAddress.text, "to": toAddress.text, "amount": amount.text})
def scrape_rows ( self ) : rows = self . browser . find_elements_by_css_selector ( 'div.master > div.root > div > div:nth-child(3) > div > div > div > div > div.table-responsive > table > tbody > tr.row.styles_item__L_bVx' ) for row in rows : fromAddress = row . find_element_by_xpath ( './/td[5]/span' ) if self . check_exists ( row , './/td[5]/span' ) else row . find_element_by_xpath ( './/td[5]/a' ) toAddress = row . find_element_by_xpath ( './/td[6]/span' ) if self . check_exists ( row , './/td[6]/span' ) else row . find_element_by_xpath ( './/td[6]/a' ) amount = row . find_element_by_xpath ( './/td[4]/span' ) if self . check_exists ( row , './/td[4]/span' ) else row . find_element_by_xpath ( './/td[4]/a' ) self . all_data . append ( { "from" : fromAddress . text , "to" : toAddress . text , "amount" : amount . text } )
Scrapes the data on a page
Scrapes the data on a page
"""
        Scrapes the data on a page
        """
self