from selenium import webdriver #
import time
from selenium.webdriver.common.action_chains import ActionChains #行为链
from bs4 import BeautifulSoup
import openpyxl
wb=openpyxl.Workbook() #建工作簿
sheet=wb.active #建活动表
driver=webdriver.Chrome()
#driver.maximize_window()
driver.set_window_size(1000,8000)
driver.implicitly_wait(5)
driver.get('https://www.aliexpress.com/category/1228/bicycle-accessories.html?trafficChannel=main&catName=bicycle-accessories&CatId=1228<ype=wholesale&SortType=default&page=1&isrefine=y')
time.sleep(5)
#action=ActionChains(driver)
#action.click()
driver.execute_script("window.scrollBy(0,3000)")
time.sleep(2)
driver.execute_script("window.scrollBy(0,5000)")
time.sleep(2)