简体   繁体   English

如何在在线 Python 解释器上使用 Webdriver 运行 Selenium?

[英]How to run Selenium with Webdriver on Online Python interpreters?

Folks, I have a scraping script that I need to run on specific times for live info, but I can't have my computer on me all day.伙计们,我有一个抓取脚本,我需要在特定时间运行以获取实时信息,但是我不能整天都在我的电脑上。 So I thought about running it on an online interpreter, but repl.it doesn't have webdriver and the other I found didn't neither.所以我想在一个在线解释器上运行它,但是 repl.it 没有 webdriver 而我发现的另一个也没有。 Could you help me with that?你能帮我解决这个问题吗?

Thanks谢谢

I'm not sure, but I don't guess if you can do it on a free online interpreter!我不确定,但我不知道您是否可以在免费的在线口译员上做到这一点!

You can buy a server and use that, You can SSH to it anytime you want, or even better, You can develop a micro web service using Flask or something else to report the data you need!您可以购买服务器并使用它,您可以随时通过 SSH 连接到它,甚至更好,您可以使用 Flask 或其他东西开发微型 Web 服务来报告您需要的数据!

Other way I can think of is let your computer be online 24/7 and use smtplib to email yourself the data in an interval!我能想到的另一种方法是让您的计算机 24/7 全天候在线,并使用smtplib每隔一段时间将数据通过电子邮件发送给自己!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM