Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hxd,get html()这个函数报错啊 #1

Open
tlovegod opened this issue Apr 10, 2022 · 3 comments
Open

hxd,get html()这个函数报错啊 #1

tlovegod opened this issue Apr 10, 2022 · 3 comments

Comments

@tlovegod
Copy link

No description provided.

@tlovegod
Copy link
Author

def get_html(number,count_number):
"""火狐模拟并获得当前源码
第一个是网址self.url,第二个是基金号,需要导入基金号列表
"""
"""火狐模拟并获得当前源码
第一个是基金号,第二个是计数器
"""
s_2='/html/body/div[4]/div/div[2]/div[1]/input[1]'
s_1='//*[@id="txt_SearchText"]'
if count_number==0:
element=driver.find_element_by_xpath('/html/body/div[2]/div[2]/div/div[1]/div/div[1]/span')#鼠标悬浮

@tlovegod
Copy link
Author

这个xpath有误

@stay-leave
Copy link
Owner

网页结构在变,这个时间长了,需要自己重新修改下。不过大部分还是没问题的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants