将数据导出到Google注册页面(验证码除外) [英] export data to google sign up page except captcha

查看:53
本文介绍了将数据导出到Google注册页面(验证码除外)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将数据从excel或数据库导出到google,twitter签名页.当我单击Windows窗体中的按钮,然后自动将签名详细信息手动上传到google的签名页中(手动验证码除外)

I need to export data from excel or database to google ,twitter sign up page.when i click a button in windows form then automatically upload sign up details into sign up page of google except captcha manually

推荐答案

几天前,我遇到了类似的问题,我想从代码中将诸如UserName和Password的数据填充到任何网站.
检查我的问题-使用C#.Net将电子邮件客户端集成到一个网站中/ASP.Net [ ^ ].

您可以在如何登录到网站 [ ^ ]和 Yahoo登录通过System.Net.Sockets命名空间 [ ^ ].

如果您使用的是WebBrowser控件,那么使用这些代码将很容易.
我已经实施了,并且工作正常.
我可以将数据填充到任何网站的文本框中.
代码只经过页面中的所有控件,并根据某些条件找到文本框.
让我解释一下代码-
I was in a similar type of problem before some days, where I wanted to populate data like UserName and Password to any website from my code.
Check my question - Integrating email clients in one website using C#.Net / ASP.Net[^].

You can find useful codes for your implementation at How login to a website[^] and Yahoo Login Via System.Net.Sockets Namespace[^].

If you are using WebBrowser control, then it will be easy for you with these codes.
I have implemented and it is working fine.
I can populate data to any website''s textboxes.
The codes just goes through all the controls in the page and finds the textboxes according to some condition.
Let me explain the code -
Dim theElementCollection As HtmlElementCollection  
 
theElementCollection = Me.WebBrowser1.Document.GetElementsByTagName("input")  
For Each curElement As HtmlElement In theElementCollection 
    Dim controlName As String = curElement.GetAttribute("name").ToString 
    If controlName = "USERNAME" Then
       curElement.SetAttribute("Value", "Your username")
    ElseIf controlName = "PASSWORD" Then
       curElement.SetAttribute("Value", "Your password")
    End If
Next 


在这里使用所有输入"元素的名称"属性进行搜索.
如果name属性为"USERNAME",则将填充您提供的用户名数据;如果为"PASSWORD",则将填充您提供的密码数据.
只需尝试实现链接中存在的代码,您就可以确定.

谢谢,
塔迪特(Tadit)


Here it is searching with the "name" attribute of all the "input" elements.
And if the name attribute is "USERNAME", then it fills with the username data you provide and if it is "PASSWORD", then it fills with the password data you provide.
Just try to implement the code present in the links and you will do it for sure.

Thanks,
Tadit


这篇关于将数据导出到Google注册页面(验证码除外)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆