1
yellowtail OP 已 click
|
2
yellowtail OP 又不行了,正常工作了一次。。。又提示 Message: element click intercepted: Element <a href="/company/6819985a-9816-44a6-ba2d-42c9f3fd5b23" target="_blank" title="点击查看公司详情" data-event-search="1" keyid="6819985a-9816-44a6-ba2d-42c9f3fd5b23" queryid="ffb737c3-2a0f-4a26-a59d-a7f1a2a2710c">...</a> is not clickable at point (308, 669). Other element would receive the click: <p class="pull-left">...</p>
(Session info: chrome=78.0.3904.70) |
3
yellowtail OP from selenium import webdriver
import time driver = webdriver.Chrome(r'C:\Users\l\Downloads\chromedriver_win32\chromedriver') driver.get(r'https://www.qixin.com/?from=baidusem17') driver.find_element_by_xpath("/html/body/div[1]/div[2]/div/div[3]/div/div/div[2]/div/span[1]/input[2]").send_keys("岳阳临港高新技术产业发展有限公司") driver.find_element_by_xpath("/html/body/div[1]/div[2]/div/div[3]/div/div/div[2]/div/span[2]").click() time.sleep(5) driver.find_element_by_css_selector( "body > div.bg-b2.padding-b-50x > div.container.margin-t-0-6x > div > div.col-md-18 > div.padding-h-1x.border-h-b4.border-t-b4.app-list-items > div.row.bg-white > div:nth-child(1) > div.col-2.clearfix > div.col-2-1 > div.company-title.font-18.font-f1 > a" ).click() |
4
yellowtail OP 嗨奥普。。
|
5
Soar360 2019-10-28 22:47:01 +08:00 1
自嗨贴
|
6
locoz 2019-10-28 23:29:18 +08:00 via Android 1
…建议…用傻瓜式爬虫工具,别折腾了…
|
7
tomczhen 2019-10-28 23:43:54 +08:00
|
8
jccg90 2019-10-29 00:09:26 +08:00
第一次就搞这种站。。。还是拿个简单的练手吧
启信宝本身就是做爬虫的,肯定对于反爬很重视,你还爬他。。。 |
9
ila 2019-10-29 00:16:23 +08:00 via Android
selenium,模拟点击
|
10
tjx20114 2019-10-29 10:20:26 +08:00 1
可以试下用 js 点击,上面报错是有东西挡住了这个 a 标签, js 点击没有遮挡的问题
driver.execute_script('document.querySelector("css 选择器").click()') |
11
yellowtail OP @tjx20114 感谢,用 get_attribute("href")解决了,,再次感谢告知。
|