from selenium import webdriver
import time
from selenium.webdriver import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
driver.implicitly_wait(60)
driver.get('https://detail.tmall.com/item.htm?id=539418127685')
time.sleep(60)

wait = WebDriverWait(driver, 240)


js_bottom = "var q=document.documentElement.scrollTop=10000"
js_bottom2 = "window.scrollTo(0,document.body.scrollHeight)"

try:
    next=wait.until(EC.presence_of_element_located((By.XPATH,"//div[contains(@class,'content ke-post')]")))
    _text=next.text
    if _text and _text.find("加载")>=0:
        # 说明要滚动页面
        driver.execute_script(js_bottom)
        print(next.text)
        pass

except Exception as e:
    pass
174bd2f77ee845fd6e0cc960b4e9434c91b614d2
<mask token>

<mask token>
driver.implicitly_wait(60)
driver.get('https://detail.tmall.com/item.htm?id=539418127685')
time.sleep(60)
<mask token>
try:
    next = wait.until(EC.presence_of_element_located((By.XPATH,
        "//div[contains(@class,'content ke-post')]")))
    _text = next.text
    if _text and _text.find('加载') >= 0:
        driver.execute_script(js_bottom)
        print(next.text)
        pass
except Exception as e:
    pass

<mask token>
driver = webdriver.Chrome()
driver.implicitly_wait(60)
driver.get('https://detail.tmall.com/item.htm?id=539418127685')
time.sleep(60)
wait = WebDriverWait(driver, 240)
js_bottom = 'var q=document.documentElement.scrollTop=10000'
js_bottom2 = 'window.scrollTo(0,document.body.scrollHeight)'
try:
    next = wait.until(EC.presence_of_element_located((By.XPATH,
        "//div[contains(@class,'content ke-post')]")))
    _text = next.text
    if _text and _text.find('加载') >= 0:
        driver.execute_script(js_bottom)
        print(next.text)
        pass
except Exception as e:
    pass

from selenium import webdriver
import time
from selenium.webdriver import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.implicitly_wait(60)
driver.get('https://detail.tmall.com/item.htm?id=539418127685')
time.sleep(60)
wait = WebDriverWait(driver, 240)
js_bottom = 'var q=document.documentElement.scrollTop=10000'
js_bottom2 = 'window.scrollTo(0,document.body.scrollHeight)'
try:
    next = wait.until(EC.presence_of_element_located((By.XPATH,
        "//div[contains(@class,'content ke-post')]")))
    _text = next.text
    if _text and _text.find('加载') >= 0:
        driver.execute_script(js_bottom)
        print(next.text)
        pass
except Exception as e:
    pass

from selenium import webdriver
import time
from selenium.webdriver import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
driver.implicitly_wait(60)
driver.get('https://detail.tmall.com/item.htm?id=539418127685')
time.sleep(60)

wait = WebDriverWait(driver, 240)


js_bottom = "var q=document.documentElement.scrollTop=10000"
js_bottom2 = "window.scrollTo(0,document.body.scrollHeight)"

try:
    next=wait.until(EC.presence_of_element_located((By.XPATH,"//div[contains(@class,'content ke-post')]")))
    _text=next.text
    if _text and _text.find("加载")>=0:
        # 说明要滚动页面
        driver.execute_script(js_bottom)
        print(next.text)
        pass

except Exception as e:
    pass