(击)$user@aol.com电子邮件可用性检查 [英] (Bash) $user@aol.com email availability checker
问题描述
所以,我试图建立在bash脚本的请求发送到aim.com的注册表单,它可以让你检查,如果一个ID能够像这样来进行:
So, I'm trying to set up a script in bash to send a request to aim.com's signup form, where it allows you to check if an ID is able to be made like so:
https://new.aol.com/productsweb ?/宣传code = 827692&安培; NCID = txtlnkuswebr00000073
- 选择一个用户名
https://new.aol.com/productsweb/?promocode=827692&ncid=txtlnkuswebr00000073 - Choose a username
如果$ USER =可用,那么$继续;否则显示对不起,该用户名不可用。
if $user = available then $continue; else show "Sorry, that username isn't available.".
一旦这个概念的时候,我会立刻把它贯穿了良好的100个左右的列表,看看如果这些都能够被重新提出。
Once that concept is down, I'll have it running through a list of a good 100 or so to see if any of these are able to be re-made.
如果任何人都可以只点我在开始的方向,这将是真棒!
感谢您的时间。
If anyone can just point me in a starting direction, that would be awesome! Thank you for your time.
推荐答案
综观引用的页面,当你点击检查
按钮,它会发送一个 POST
请求发送到以下网址:
Looking at the referenced page, when you click the Check
button, it sends a POST
request to the following URL:
https://new.aol.com/productsweb/subflows/ScreenNameFlow/ AjaxSNAction.do
通过以下(必需的)参数:取值
。这个参数需要被设置为你测试的用户名。
With the following (required) parameter: s
. This parameter needs to be set to the username you're testing for.
如果用户名存在,一个 reloadEverything 的消息。如果用户名不存在, toggleSNField 的消息。
If the username exists, a "reloadEverything" message appears. If the username doesn't exist, a "toggleSNField" message appears.
如果你想有一个真正的对不起,该用户名不可用的。消息,而不是reloadEverything,增加两个参数:→
和˚F
- 他们都需要的也的是你正在测试的用户名
If you want a real "Sorry, that username isn't available." message instead of the "reloadEverything", add two more parameters: l
and f
- and they both need to also be the username you're testing.
要做到这一点,你可以通过你的用户名列表循环,使每一个 POST
请求,然后只解析匹配上面的字符串响应( reloadEverything 的字符串是长于 - 所以你可以只是做一个字符串匹配)
To accomplish this, you could iterate through your list of usernames and make a POST
request with each and then just parse the response matching the above strings (the reloadEverything string is longer than that - so you could just do a substring match).
这篇关于(击)$user@aol.com电子邮件可用性检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!