'WebScraping Table from Opensea

I am trying to scrape the data from the table on opensea.io/rankings. I can't seem to get data from every column. The output consists of 5 things per row, but the actual table has other stuff that somehow couldn't be scraped.

A sample output is:

Bored Ape Yacht Club
+ More
5,026.85
+14.15%
3

Would appreciate any help with this!

My code:

from selenium import webdriver
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
import venue
import pandas as pd

PATH = ''
driver = webdriver.Chrome(PATH)

driver.get('https://opensea.io/rankings')

other_services = driver.find_element_by_xpath('/html/body/div[1]/div[1]/main/div/div[2]/div/div[2]')
#print(type(other_services))
print(other_services.text)


Solution 1:[1]

other_services = driver.find_element_by_xpath('/html/body/div[1]/div[1]/main/div/div[2]').get_attribute('outerHTML')
print(other_services)

worked for me

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jaime Hidalgo