Skip to content
Advertisement

easymc.io web scraping tying to extract a value

I’m trying to get as many easymc.io accounts keys as I can, I tried to get the value of a button but it doesn’t and when I’m trying to find the element_by_xpath it says that the xpath does not exist

JavaScript

Advertisement

Answer

To scrape the value of the accounts keys e.g. 8yBAnUFoNlj3JJHzFE7t you need to induce WebDriverWait for the visibility_of_element_located() and you can use either of the following Locator Strategies:

  • Using CSS_SELECTOR:

    JavaScript
  • Using XPATH:

    JavaScript
  • Console Output:

    JavaScript
  • Note : You have to add the following imports :

    JavaScript

References

You can find a couple of relevant discussions on NoSuchElementException in:

Advertisement