Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Having problems getting a player's forum posts with HTTP Service?

So I'm trying to get the number of players forum posts with Http Service using a proxy, and it's getting the place visits instead of the forum posts. This is because it's the exact same line of code in inspect element. Is there a way to get around this? All help and criticism is appreciated.

This is just something I was trying but it keeps printing nil. Excuse the bad code:

get = game.HttpService:GetAsync('http://www.rproxy.pw/users/66672488/profile')

print (get:match ('<li class="profile-stat"><p class="stat-title">Forum Posts</p><p class="rbx-lead">(%d+)</p>'))

3 comments

0

Wouldn't the html code have one different factor? Like instead the value being "value=placevistis", it would be "value=forumposts"?

0

No this is the only way of getting the forum posts I know of, and its the same as getting the place visits.

num

0

You need to include your code so we can guess what's wrong.

1 answer

I believe you're only accessing one line, try doing the full thing:

  • Forum Posts

    %d+

    That should work.

    4 comments

    0

    I tried that, but it just prints nil.

    0

    Really? Try adding spaces in between etc. I'll re format so you can try it that way (because I basically de-formatted the code i got from the browser)

    0

    I have tried it. Still prints nil.

    0

    Damn.

    This discussion is preserved as it was. New answers, comments, and votes are closed.