(Bash) $user@aol.com email availability checker

 ̄綄美尐妖づ 提交于 2019-12-12 02:45:00

问题


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/?promocode=827692&ncid=txtlnkuswebr00000073 - Choose a username

if $user = available then $continue; else show "Sorry, that username isn't available.".

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.


回答1:


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.

If the username exists, a "reloadEverything" message appears. If the username doesn't exist, a "toggleSNField" message appears.

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.

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).



来源:https://stackoverflow.com/questions/12888407/bash-useraol-com-email-availability-checker

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!