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

网站最近好像升级了,路径变了,这种解决思路有些什么? #11

Open
thatwhy opened this issue Oct 27, 2020 · 5 comments

Comments

@thatwhy
Copy link

thatwhy commented Oct 27, 2020

No description provided.

@ZeroyiQ
Copy link

ZeroyiQ commented Oct 29, 2020

我自己改了下Utils.py 文件,selenium+phantomjs。
113、114、118 encode 改为 utf-8
119行 detail_url = "http://www.qimingzi.net/nameReportpc.aspx?surname=" 这是新的路径

修改后的内容我暂且提交到我 fork 的仓库

selenium 爬虫不是一个好办法,但是目前是简单能跑通整个流程了,我之后看能不能改成 puppeteer

@ZeroyiQ
Copy link

ZeroyiQ commented Oct 30, 2020

我更新了一波,现在使用了 pyppeteer 代替了 selenium 内存应该不那么吃紧了。

@Kongsea
Copy link

Kongsea commented Jun 8, 2021

@ZeroyiQ 你的现在也不能用了呀。有没有想法修复一下呢?谢谢啦。

@ZeroyiQ
Copy link

ZeroyiQ commented Jun 8, 2021

我看是路径稍微做了下调整,nameReportpc 换成了nameResultpc
你可以替换下试试看,结果界面的结构大概率没有变动(我猜的。
我看后面的参数是 姓+名+年+月+日+小时+分钟,字符串拼接下应该就没问题。

http://www.qimingzi.net/nameResultpc.aspx?surname=测&name=试=%E7%94%B7&year=2021&month=06&date=08&hour=13&minute=42

@Kongsea
Copy link

Kongsea commented Jun 9, 2021

好了,没问题了。谢谢你。@ZeroyiQ

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

3 participants