triostones's recent timeline updates
triostones

triostones

V2EX member #186832, joined on 2016-08-13 18:56:26 +08:00
triostones's recent replies
Feb 23, 2017
Replied to a topic by sghcel 程序员 如何模拟人移动鼠标产生的的轨迹?
就算轨迹模型可以做出来,但是 webdriver 的执行和代码的执行貌似不是同步的。
代码上设定两点间歌 0.5 秒, webdriver 执行的间隔可能是 1 秒。
@kafka0102 用 webdriver 的爬虫会执行 js 的。
3
In [12]: import heapq

In [13]: from operator import itemgetter

In [14]: scores = [ {'student_name': 'zhangsan', 'student_score': 65}, {'student_name': 'lisi', 'student_score': 95}, {'student_name':'wangwu', 'student_score': 80}, {'student_name': 'maliu', 'student_sco
...: re': 75}, {'student_name': 'zhuqi', 'student_score': 88} ]

In [15]: heapq.nlargest(3, scores, key=itemgetter('student_score'))
Out[15]:
[{'student_name': 'lisi', 'student_score': 95},
{'student_name': 'zhuqi', 'student_score': 88},
{'student_name': 'wangwu', 'student_score': 80}]
Oct 28, 2016
Replied to a topic by wico77 Python 如何在 python 里运行 js 代码?
Selenium.
Aug 17, 2016
Replied to a topic by liuxu Linux 谁有 linux 下捕获 302 跳转的软件
有 sitemap 或能生成 sitemap 吗?用 2 楼的方法去检查 sitemap 中的每个 url ?
Aug 17, 2016
Replied to a topic by liuxu Linux 谁有 linux 下捕获 302 跳转的软件
Wireshark ?
推荐 pyenv 。自动 activate , pyenv shell 又能灵活切换 env 。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2542 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 01:42 · PVG 09:42 · LAX 18:42 · JFK 21:42
♥ Do have faith in what you're doing.