automatic registration process on the practical operation (b)

automated registration process on the practical operation of (a)

When it comes back automatically fill in forms by registered account on selenium saying, verify and simulate the operation Tencent trigger bar codes sent. Next is the climb out from the temp-mail verification code, and automatically fill in. Click on "Register" can get a lunch.

The road seems very close, yet so far away. People do not split the storm!

Logic is beginning to get the message content in triggering verification link. So, the first problem is to get the message content corresponding to the mailbox.

If, temp-mail is not a demon, there are two options to obtain the contents of the message.

A program, to simulate a browser operation, mailboxes corresponding to the fill <save>, then triggers <refresh>, and message content by crawling id.

Now <save> after the prompt will continue operating the suspected robot. Heart cursed, temp-mail is not to provide you the convenience of it. The road was blocked.

Scheme II, operated by temp-mail api.

def mail(user, domain):
    global count

    ss_mail = requests.Session()
    rsp_get = ss_mail.get("https://temp-mail.org/zh/option/change/")
    csrf = re.findall(r'name="csrf" value="(\w+)', rsp_get.text)[0]

    tempmail = {"csrf": csrf, "mail": user, "domain": domain}

    ss_mail.post("https://temp-mail.org/zh/option/change/", data=tempmail)

    rsp_refresh = ss_mail.get("https://temp-mail.org/zh/option/refresh/")
    url_box = re.findall(r"https://temp-mail.org/zh/view/\w+", rsp_refresh.text)
    while url_box == []:
        time.sleep(1)
        rsp_refresh = ss_mail.get("https://temp-mail.org/zh/option/refresh/")
        url_box = re.findall(r"https://temp-mail.org/zh/view/\w+", rsp_refresh.text)

    rsp_message = ss_mail.get(url_box[0])
    url_verify = re.findall(
        r"https://www.processon.com/signup/verification/\w+", rsp_message.text
    )
    rsp_verify = ss_mail.get(url_verify[0])

    if rsp_verify.status_code == 200:
        count += 1
        print("{}@{} 成功! 【共成功{}次】".format(user, domain, count))

Because it involves the cross-domain, he joined csrf in the http header. This place temp-mail has also undergone a change.

csrf = re.findall(r'name="_csrf" value="([\w-]+)', rsp_get.text)[0]

Name changed, the original value of the rule \ W (letters, underline, digital) becomes letters, underline, numbers and '-'.

Full of joy. Suddenly discovered temp-mail API to change the rules. All API are hosted to  rapidapi platform . Then, call the API requires a variety api key, can not tolerate that need to bind the relevant payment information.

If you are a micro or a treasure, I may continue. But not ah ,,,

So, the road was blocked.

Graduation!

 

From this trend, behind temp-mail charges may apply. And with previous philosophy is not the same. That is not easy, by binding platform app key, related operations will not be traced to it, where there temp experience.

At that time, I am thinking. Why do not limit the registration process on the mobile phone number can only use it! Also not to mention, just the other day, when I think of it, then toss of time, process on has been so dry.

Regret the original, you can not brush when the capacity of a little more than brush.

Really: flowers worthy to be straight off, no flowers be empty Mo broken branches!

 

However, I want to automate expansion is not no way. Read the expansion path processon, and collect 5 praise can summon dragon!

Therefore, we got 6 account, by selenium analog thumbs. There is time, then this program a practical operation. 6 account how do? It's a secret!

 

In summary, through the practical operation:

1. selenium put it down, giving a lot of imagination;

2. DOM content crawled have some familiarity;

3. The application of regular expressions, I wonder if I can make it into the heart.

 

I'll be back. In fact, my processon capacity soon to be a red line.

 

Guess you like

Origin www.cnblogs.com/imine-lightq-jane/p/11689653.html