Java-based Discuz Auto-reply Small program

Source: Internet
Author: User

Every day in the Forum irrigation, one day suddenly bored to think of writing such a thing ...

First on GitHub's address: https://github.com/xyqasunyang/autoReply

My basic idea is to get all the posts on the Forum home page, to prevent digging graves are reported, and then reply to the content of the post connection saved in the document, to avoid repeating replies, the content is basically a copy of the previous floor of the reply.

First of all, to solve the problem of landing, I first landed on the forum, and then get a cookie

Take your identity message with you every time you post.

Next I looked at the parameters of the post

Message is the content of the post, Posttime is the timestamp, the other copy is good ~

At that time I thought, if each post back the same content, afraid will be reported, so I chose to copy the content of the first floor.

After reading the source code, I found that this part of the replies are all

So I follow this piece to split, where, if there are pictures or spaces and so on to do the next processing.

At the beginning, I was in accordance with the order of posting, starting from a certain post, the order of reply, so that led to a problem, was said I dug Graves report, so I slightly modified a bit.

Request the content of the first page of the forum, get all the first page posts, traverse, and will reply to the existing file in each comparison.

Java-based Discuz Auto-reply Small program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.