Triblaze
February 25th, 2012, 04:28 PM
So on another site I go to, we have member's updates. It's pretty much a list of all the users, along with their post count and follow count and stuff like that, along with the increases from last week. There's also some community sections. It's kind of like a board newsletter. Anyway, the stat part is done with a script. Well, two actually. One has you enter the user's usernames into it, and it returns all their posting info (this script is hosted online by one of the users but is not built into the boards). The other script takes all the data and puts it in list form and totals up the increases and decreases.
Now, we recently moved to a new board system. So while the list that puts the data into a fancy format remains, the script for gathering the data no longer works because all the data is in a completely different place. The user who wrote it originally did it a long time ago and isn't here any more, I think.
So I figured I'd try to make one. I don't need to redo the second script, that still works because the data is input by the user, and I could code that myself if needed.
However, I don't really know anything about making code work with the web. So what I'm asking is, what do you use to gather data from a website? Optimally it'd look up the profiles based on the username and grab the data from there. How do I do that? Would you have it open the pages somehow and then grep it? Is there a specific online-grep sort of code?
I'm just wondering how I'd go about this, a few google searches haven't been especially helpful.
Answers in terms of Java would be appreciated, but I can try to work it out from anything really.
Now, we recently moved to a new board system. So while the list that puts the data into a fancy format remains, the script for gathering the data no longer works because all the data is in a completely different place. The user who wrote it originally did it a long time ago and isn't here any more, I think.
So I figured I'd try to make one. I don't need to redo the second script, that still works because the data is input by the user, and I could code that myself if needed.
However, I don't really know anything about making code work with the web. So what I'm asking is, what do you use to gather data from a website? Optimally it'd look up the profiles based on the username and grab the data from there. How do I do that? Would you have it open the pages somehow and then grep it? Is there a specific online-grep sort of code?
I'm just wondering how I'd go about this, a few google searches haven't been especially helpful.
Answers in terms of Java would be appreciated, but I can try to work it out from anything really.