NOTE: Please don't mark this as a duplicate (which it probably isn't, because the last time I got a question marked as a "duplicate", it wasn't, and I was linked to an irrelevant question with an irrelevant answer). SH's search is pretty useless, or my question has not been asked before with a relevant title.
Now, the string I am trying to find in the page's HTML is this:
local cut = [[<p class="rbx-lead">%.+</p>]]
But for some reason, this is returning nil, even though %.+ could be anything (E.G: "","1","aBc", etc).
Can someone please tell me why?
I am using rproxy.pw for this, and maybe it's HTML returned from a script is different to the usual ROBLOX.com?
From what I have gathered, I could have done this: %.+ or this: (%.+). I have tried both, and both don't work. Also, I know that actually establishing the connect to the website isn't the problem, because I have printed the entire page's code.
Also, the specific page I am using to get my information is: http://rproxy.pw/users/" ..id.. "/profile
Someone asked for more code, so I will provide you guys with the entire function I am using:
function getJoinDate(id)
local link = "http://rproxy.pw/users/" ..id.. "/profile"
local cut = [[<p class="rbx-lead">%.+</p>]] --<p class="stat-title">Join Date</p> multi-line help?
local html
local success,msg = pcall(function() html = serv:GetAsync(link,false) end)
if success then
print("works")
local find = html:match(cut)
if find then
print("found")
return find
else
return "Cannot Get Join Date"
end
else
return "Cannot Get Join Date"
end
end

1 comment
Can you show a bit more code?