简体   繁体   English

使用python使用javascript和https登录网站

[英]Using python to login a site using javascript and https

I would like to use python to login to a site that uses both javascript and https encrypted comm. 我想使用python登录到同时使用javascript和https加密的comm的网站。 Specifically - it's this site: 具体来说-这是这个网站:

https://registration.orange.co.il/he-il/login/login/?TYPE=100663297&REALMOID=06-73b4ebbc-5fd9-4b19-b3f4-42671c0df793&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=vmwebadmin3&TARGET=-SM-http%3a%2f%2fwww1%2eorange%2eco%2eil%2fSendSMS%2f https://registration.orange.co.il/he-il/login/login/?TYPE=100663297&REALMOID=06-73b4ebbc-5fd9-4b19-b3f4-42671c0df793&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=vmwebadmin3&TARGET=-SM-http% 3A%2F%2fwww1%2eorange%2eco%2eil%2fSendSMS%2F

All I wish to do is writing a python script, successfully logging in, and later on to transfer the algorithm to java. 我要做的只是编写一个python脚本,成功登录,然后将算法转移到Java。

Every solution I've tried so far, just got me back to the same login form. 到目前为止,我尝试过的所有解决方案都让我回到相同的登录表单。

Thank you all! 谢谢你们!

Is using a browser automation tool too far off from what you're trying to do? 使用浏览器自动化工具与您要执行的操作相距太远吗? Without knowing the exact goal this could be way off base, but what about using something like Selenium ? 在不知道确切目标的情况下,这可能会偏离基础,但是使用Selenium之类的东西呢? You can use Selenium from Java, Python, C#, and Ruby. 您可以使用Java,Python,C#和Ruby中的Selenium。

I've used Selenium to automatically log in to a private wiki and retrieve, edit, and submit changes to articles. 我已经使用Selenium自动登录到私有Wiki并检索,编辑和提交对文章的更改。 If that's similar to what you're trying to do, it could work. 如果这与您要执行的操作类似,则可以使用。

It's a pretty heavyweight approach though, since you actually have to be running a realtime browser to do the work. 但是,这是一种非常重量级的方法,因为实际上您必须运行实时浏览器才能完成工作。

您应该检查spynner模块,可以处理javascript和https。

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

相关问题 使用Javascript与Scrapy登录网站 - Login with Scrapy with site using Javascript 使用Javascript爬行登录到重定向站点 - Scrapy login to redirected site using Javascript How to scrape the Javascript based site https://marketchameleon.com/Calendar/Earnings using Selenium and Python? - How to scrape the Javascript based site https://marketchameleon.com/Calendar/Earnings using Selenium and Python? 如何使用 Python 向 JavaScript 创建的登录表单发送 HTTPS POST 请求? - How to send a HTTPS POST request to a JavaScript created login form using Python? 使用perl登录到https站点 - Log into an https site using perl 如何使用来自另一个站点的登录信息发出 javascript 请求 - how to make javascript requests using login information from another site 使用 Python 使用 JavaScript 表单自动登录网站 - Using Python to Automatically Login to a Website with a JavaScript Form 如何登录到 JavaScript 表单并使用 python 进行抓取 - How to login to JavaScript form and scrape using python 请求并使用curl登录网站 - request and login a site using curl 尝试使用JavaScript GreaseMonkey在https://kite3.zerodha.com/上自动登录 - trying to auto-login at https://kite3.zerodha.com/ using javascript GreaseMonkey
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM