RE: Making a script to get updates when your voting power is 100% Part 01
I've tried scraping this with selenium web driver and it worked. Here's my code:
from selenium import webdriver
driver = webdriver.Firefox(executable_path=r'C:\Users\bteja\Documents\geckodriver.exe') ##this is the path where my geckodriver exists
hivestats_url = 'https://hivestats.io/@bhanutejap'
vote_value_percentage = driver.find_elements_by_xpath('/html/body/div/div/div/div/div/section/div/div/div/span/span')
You can get the XPath by inspecting the element, right click and copy full xpath.
The top suggestion in the above StackOverflow thread mentions a solution to use the dryscrape module along with BeautifulSoup, I checked for that, but looks like it is supported only on Linux/MacOS. (https://github.com/niklasb/dryscrape)