I used to get data using selenium with this code :
code
from lxml import etree from lxml.etree import tostring from selenium import webdriver