Spartan Company Commendations/Stats

Is there a way to pull a spartan company’s commendations and/or game stats? I really think this should be added to the api so sites can make Spartan Company’s that much more relevant.

> 2584208357619315;1:
> Is there a way to pull a spartan company’s commendations and/or game stats?

Not currently, no.

> 2584208357619315;1:
> I really think this should be added to the api so sites can make Spartan Company’s that much more relevant.

I hope so too :slight_smile:

> 2584208357619315;1:
> I really think this should be added to the api so sites can make Spartan Company’s that much more relevant.

Think so.

I hope 343i don’t forget about API and it will be extends.

It’s not the greatest solution, but I created a scraper that gathers the information directly from the webpages. The simple output from the script is here: http://162.243.211.225:45671/

Would be simple enough to turn that into a JSON output. That the type of thing you’re looking for?

Never mind ignore this post. Somebody already answered lol.

> 2753093343646559;2:
> > 2584208357619315;1:
> > Is there a way to pull a spartan company’s commendations and/or game stats?
>
>
> Not currently, no.
>
>
>
>
> > 2584208357619315;1:
> > I really think this should be added to the api so sites can make Spartan Company’s that much more relevant.
>
>
> I hope so too :slight_smile:

Yeah me too

Not currently, no

> 2533274876204743;4:
> It’s not the greatest solution, but I created a scraper that gathers the information directly from the webpages. The simple output from the script is here: http://162.243.211.225:45671/
>
> Would be simple enough to turn that into a JSON output. That the type of thing you’re looking for?

You interested in sharing the code to your scraper?

> 2533274793545758;8:
> > 2533274876204743;4:
> > It’s not the greatest solution, but I created a scraper that gathers the information directly from the webpages. The simple output from the script is here: http://162.243.211.225:45671/
> >
> > Would be simple enough to turn that into a JSON output. That the type of thing you’re looking for?
>
>
> You interested in sharing the code to your scraper?

I agree, this would be a useful thing to share. Devs like the C# wrapper and other apps could take advantage of your hard work. Even if we use it until there is a real API endpoint.

Okay, though note this is a hacked together script. Here’s the download link: https://cloudup.com/files/iVXddhRjjd0/download

It uses node.js. Grab either LTS or current from Download | Node.js. After that just run “node main.js <company_name>”. It’ll grab the data every 10 mins, save both the txt and json to the data/ folder and start an http server that delivers the txt file. It’s written specifically for my use case. If you want any generalizations to it let me know.

1 Like

> 2533274876204743;10:
> Okay, though note this is a hacked together script. Here’s the download link: https://cloudup.com/files/iVXddhRjjd0/download
>
> It uses node.js. Grab either LTS or current from Download | Node.js. After that just run “node main.js <company_name>”. It’ll grab the data every 10 mins, save both the txt and json to the data/ folder and start an http server that delivers the txt file. It’s written specifically for my use case. If you want any generalizations to it let me know.

Thanks! I’ll check it out this weekend.

I wrote a .NET scraper to get all gamertags of a company and which company a gamertag is in while as I was working on a Spartan Company leaderboard site for the Hackathon. Ended up being too much data to handle in a month, but I’m starting up on the project again in a few weeks…

I’ll post it here on the forums this weekend - It’s ready to go now, but I need to clean out some database credentials and figure out how to make a -Yoink!- Nuget package to make additions easy before I can share it. Someone remind me if I slack off?

Sure. I recently published my simple node.js API: GitHub - trevnorris/halo5-api: simple halo 5 api for node

Though still finishing up a CLI for easier stats aggregation/reporting. We’ll see who publishes first? :wink:

Looks like this is a dead topic,
Thank you

Just wanted to let you all know that i’ve built a Discord bot based on your libraries. I call it Halo dBot,
link =

Commands =
!halo (gt), = H5 Gamer Stats >> returns the general stats.
!com (Company Name), = Company Commendations
!members (Company Name), = Company Members
!membersDate (Company Name), = Company Members + last date played << ETA = 1-2 minutes since it looks at a page per member.
!8ball, will satisfy any curiosity >> Exuberant Witness says:
!quote, random quote
!join, url to add this bot
!donate, help fight A.I. Rampancy Halo dBot

If you want to test it out before you add it to your server here’s an invite to a test server.

1 Like

This is super cool, May Hamn. :slight_smile:

> 2533274813500699;16:
> This is super cool, May Hamn. :slight_smile:

Thank you. It’s been fun building it in a foreign language (first time JS). I usually write in Lua so that’s been fun and frustrating all at the same time.

> 2533274813500699;12:
> I wrote a .NET scraper to get all gamertags of a company and which company a gamertag is in while as I was working on a Spartan Company leaderboard site for the Hackathon. Ended up being too much data to handle in a month, but I’m starting up on the project again in a few weeks…
>
> I’ll post it here on the forums this weekend - It’s ready to go now, but I need to clean out some database credentials and figure out how to make a -Yoink!- Nuget package to make additions easy before I can share it. Someone remind me if I slack off?

Your slacking off!? (7/11/2016)

> 2701489597907813;18:
> > 2533274813500699;12:
> > I wrote a .NET scraper to get all gamertags of a company and which company a gamertag is in while as I was working on a Spartan Company leaderboard site for the Hackathon. Ended up being too much data to handle in a month, but I’m starting up on the project again in a few weeks…
> >
> > I’ll post it here on the forums this weekend - It’s ready to go now, but I need to clean out some database credentials and figure out how to make a -Yoink!- Nuget package to make additions easy before I can share it. Someone remind me if I slack off?
>
> Your slacking off!? (7/11/2016)

Haha, no way man! Posted this one just a week later: https://www.halowaypoint.com/en-us/forums/01b3ca58f06c4bd4ad074d8794d2cf86/topics/quartermaster---scrape-spartan-company-data-c/2147ada5-ac1f-45d0-a41f-6d30ec5bfb8a/posts

And if you’re on Windows, check out “MoochKick.” It’s not as slick as your Discord bot, but it’s very similar to that “!membersDate” command.

> 2533274813500699;19:
> > 2701489597907813;18:
> > > 2533274813500699;12:
> > > I wrote a .NET scraper to get all gamertags of a company and which company a gamertag is in while as I was working on a Spartan Company leaderboard site for the Hackathon. Ended up being too much data to handle in a month, but I’m starting up on the project again in a few weeks…
> > >
> > > I’ll post it here on the forums this weekend - It’s ready to go now, but I need to clean out some database credentials and figure out how to make a -Yoink!- Nuget package to make additions easy before I can share it. Someone remind me if I slack off?
> >
> > Your slacking off!? (7/11/2016)
>
> Haha, no way man! Posted this one just a week later: https://www.halowaypoint.com/en-us/forums/01b3ca58f06c4bd4ad074d8794d2cf86/topics/quartermaster---scrape-spartan-company-data-c/2147ada5-ac1f-45d0-a41f-6d30ec5bfb8a/posts
>
> And if you’re on Windows, check out “MoochKick.” It’s not as slick as your Discord bot, but it’s very similar to that “!membersDate” command.
> GitHub - C-Kennelly/MoochKick: (Halo 5 API) Saves you hours of Service Record hunting for inactive players in your Spartan Company.

Sry no PC’s in my house.

1 Like