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