【发布时间】:2014-05-06 14:05:01
【问题描述】:
您是否失去了对网站的浏览,我需要使用 python 点击页面底部的“Další holky prosím”http://www.lide.cz/ 我试图编写一些程序,但它不起作用。请咨询谢谢
with closing(Firefox()) as browser:
browser.get('http://www.lide.cz/')
options=browser.find_elements_by_class_name("span.button.zeny")
for i in options:
print('nasel')
i.click()
page_source = browser.page_source
soup = BeautifulSoup(page_source)
for i in soup.findAll('a'):``
out=(i).get("href")
if out.find('/detail/')!= -1:
print(out)
【问题讨论】: