Tag: webautomation

我如何使用Pythonlogin到网站?

我该怎么做? 我试图进入一些指定的链接(与urllib),但要做到这一点,我需要login。 我有这个网站的来源: <form id="login-form" action="auth/login" method="post"> <div> <!–label for="rememberme">Remember me</label><input type="checkbox" class="remember" checked="checked" name="remember me" /–> <label for="email" id="email-label" class="no-js">Email</label> <input id="email-email" type="text" name="handle" value="" autocomplete="off" /> <label for="combination" id="combo-label" class="no-js">Combination</label> <input id="password-clear" type="text" value="Combination" autocomplete="off" /> <input id="password-password" type="password" name="password" value="" autocomplete="off" /> <input id="sumbitLogin" class="signin" type="submit" value="Sign In" /> 这可能吗?

无头的互联网浏览器?

我想做以下事情。 login到一个网站,点击几个特定的​​链接,然后点击下载链接。 我想运行这个作为Windows或cron工作在Linux上的计划任务。 我对我使用的语言并不挑剔,但是如果可能的话,我希望这样做可以把浏览器窗口放在屏幕上。