Results 1 to 8 of 8

Thread: [RESOLVED] My Reputations Listing - Parsing

  1. #1
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,137

    Resolved [RESOLVED] My Reputations Listing - Parsing

    I wrote a couple apps that parse this sites html, for example one app saves my reputations since the forum only shows the last 40 or so. The one thing I'm puzzled by is the old style used Gif images for reputations so I could easily figure out (PARSE) a threads reputation status, but from what I can gather the new style uses some weird numbers that don't seem to make any sense.

    For example.

    Green
    id="reputationbit_4205982_125360">
    id="reputationbit_4199897_147419">

    Grey
    id="reputationbit_4194437_147649">
    id="reputationbit_4194157_65196">

    Is there anyway to identify when parsing the html what the reputation status is?

    I updated my app to parse the new style html, but its just using the default green since I have no clue how to parse that part, Any help with this? Thanks!
    Last edited by Edgemeal; Aug 14th, 2012 at 08:25 AM. Reason: remove image

  2. #2
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,738

    Re: My Reputations Listing - Parsing

    Hello,

    Just to confirm...

    By reputation status, you mean the amount of points that a user would be able to award you if they rate you. Is that correct?

    Gary

  3. #3
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,137

    Re: My Reputations Listing - Parsing

    Quote Originally Posted by gep13 View Post
    Hello,

    Just to confirm...

    By reputation status, you mean the amount of points that a user would be able to award you if they rate you. Is that correct?

    Gary
    No, the reps page only shows you like the last 40 reps you've gotten, so I parse my reps page (the html) about once a month and add any new reps to my app to keep track of them, I've been doing it for a little over two years.

    Anyway I figured it out, in this new forum style (using vBulletin v4.1.5) the word after summaryinfo in the html tells you what the rep is you got from the person that rated you.

    summaryinfo pos
    summaryinfo balance
    , and if its not pos or balance then it must be a negative rep I assume.
    Last edited by Edgemeal; Aug 3rd, 2012 at 02:00 PM.

  4. #4
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,738

    Re: [RESOLVED] My Reputations Listing - Parsing

    Hey,

    I was just wondering, have you posted the parsing code that you use somewhere? I was wondering if you would be willing to share the code.

    Thanks

    Gary

  5. #5
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,137

    Re: [RESOLVED] My Reputations Listing - Parsing

    Quote Originally Posted by gep13 View Post
    Hey,

    I was just wondering, have you posted the parsing code that you use somewhere? I was wondering if you would be willing to share the code.

    Thanks

    Gary
    Sure, but its not pretty LOL!
    I save the reps page as "html only" using firefox (never tried other browsers), then load it into my app, it then does the parsing and adds any new reps, etc,etc..
    Attached (VB10) is the basic parsing part (for vBulletin v4.1.5) and shows the results in a LV.
    EDIT: As of May 09, 2013 the forum updated to vBulletin v4.2.0 so the attached code will no longer work!

    btw, If you die laughing after seeing the code its not my fault!
    Attached Files Attached Files
    Last edited by Edgemeal; May 9th, 2013 at 08:06 PM.

  6. #6
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,738

    Re: [RESOLVED] My Reputations Listing - Parsing

    Hello,

    Thank you very much, really appreciate it!

    Ha ha, not a problem, if it works, that's all that matters

    Gary

  7. #7
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,137

    Re: [RESOLVED] My Reputations Listing - Parsing

    Quote Originally Posted by gep13 View Post
    Hello,

    Thank you very much, really appreciate it!

    Ha ha, not a problem, if it works, that's all that matters

    Gary
    I completely forgot about this other version I was working on, I never did figure out how you login to vbforums and download the reputation page, so I used a web browser control to auto login, get the InnerHtml, logoff, parse the html string, view & save it. The parsing is only slightly different. (not fully tested either).
    Anywho I made a couple changes to it and posted the full (VB10) app in the Util forum.
    [VB10] VBForums Reputations Saver - and the Ugly

  8. #8
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,738

    Re: [RESOLVED] My Reputations Listing - Parsing

    Perfect! Will definitely take a look :-)

    Will let you know how I get on.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •