DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 18 Jan 2016 09:29 PM |
How would I go about returning the amount of ROBUX in group funds using ROBLOX Web API? I tried getting the information about a group, unfortunately it doesn't get the funds. Any help would be appreciated? ᕦ (ಠДಠ) ᕤ Powar11 |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 18 Jan 2016 09:34 PM |
if it's not in roblox apis then you'd have to get a server to request the group page w/ proper roblox security then narrow it down w/ to the element that contains the funds value.
#code alert("I am awesome c:") |
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 18 Jan 2016 09:35 PM |
How would I do that? ᕦ (ಠДಠ) ᕤ Powar11 |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 09:38 PM |
http://wiki.roblox.com/index.php?title=API:Class/GroupService/GetGroupInfoAsync Best group API so far. No robux because it's not always publicly visible. If you wanted to get it, you would have to use a proxy and get the group page via httpservice. Then you would have to parse the html.
Fun right!? |
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 18 Jan 2016 09:39 PM |
There has to be an alternative? Maybe I could scrape it? ᕦ (ಠДಠ) ᕤ Powar11 |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 09:43 PM |
| No, there isn't. Unless roblox has some magical http api that they haven't told us about. |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 09:54 PM |
you can only scrap it if they display for people out of the group to see the funds
|
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 18 Jan 2016 09:58 PM |
Ok, a little help with that maybe.. :) Thanks, George
ᕦ (ಠДಠ) ᕤ Powar11 |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 18 Jan 2016 09:58 PM |
Are you willing to sacrifice everything? If so then spend a couple hours searching through roblox's group page and find the element that contains the value. You can use javascript,php, etc and just get the element and return that through ur proxeh. You can find fwree hosts everywhere. I can't link any cause i don't wanna get banned.
#code alert("I am awesome c:") |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 10:00 PM |
I could make an api like that in like 10 minutes(I've made way harder ones)
But sorry, I have uh, more important things to do. |
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 18 Jan 2016 11:52 PM |
When it comes to preg_match I'm not that skilled :)
This is what I have..
http://pastebin.com/29eGuJiD
It works, but it outputs: "Get more with Builders Club! Join Builders Club"
I know it is because of the preg_match, but I can't figure out what to change it to. Any help greatly appreciated! George |
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|
Froast
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 3134 |
|
|
| 19 Jan 2016 01:27 AM |
If you know what you're doing this is not difficult at all. This is how you would do it after scraping the source of "group admin" (I wrote this a while ago for something else).
$doc = new DOMDocument(); $doc->loadHTML($admin); $find = new DomXPath($doc); $parent = $find->query('//div[@id="GroupTitle"]')->item(0); $tickets = $find->query('div/span[@class="tickets"]',$parent)->item(0)->textContent; $robux = $find->query('div/span[@class="robux"]',$parent)->item(0)->textContent; |
|
|
| Report Abuse |
|
|
Froast
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 3134 |
|
|
| 19 Jan 2016 01:28 AM |
| the silly way is to use preg_match (which is unfortunately used much too often), I prefer actually parsing the HTML as it's a lot cleaner and makes more sense |
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 19 Jan 2016 09:37 AM |
So I could do this?
$admin = "http://www.roblox.com/My/Groups.aspx?gid=1168167"; $doc = new DOMDocument(); $doc->loadHTML($admin); $find = new DomXPath($doc); $parent = $find->query('//div[@id="GroupTitle"]')->item(0); $tickets = $find->query('div/span[@class="tickets"]',$parent)->item(0)->textContent; $robux = $find->query('div/span[@class="robux"]',$parent)->item(0)->textContent; echo $robux;
|
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|