generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Simple Web API - Group Funds

Previous Thread :: Next Thread 
DevSyntax is not online. 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 is not online. 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 is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
18 Jan 2016 09:35 PM
How would I do that?
ᕦ (ಠДಠ) ᕤ Powar11
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
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 is not online. 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
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
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
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
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 is not online. 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 is not online. 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
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
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 is not online. 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 is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
18 Jan 2016 11:57 PM
Bump
Report Abuse
Froast is not online. 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 is not online. 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 is not online. 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 is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
19 Jan 2016 08:03 PM
Bump
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
19 Jan 2016 10:40 PM
Bump*2
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
20 Jan 2016 12:26 AM
Fixed
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image