Computational Mafia

This forum is for discussion related to the game.
yessiree
Mafia Scum
 
User avatar
Joined: June 06, 2013
Pronoun: He

Post Post #9  (isolation #0)  » Fri Feb 15, 2019 12:52 pm

the main issue with trying to automate anything on mafiascum is the lack of an API. (it's in development?) It's FeelsBadMan to work with <document> response types, which means an addition layer of reading/parsing XML/HTML content which makes the whole process more time-consuming and error prone

It would be much much better if you could do something like query "https://forum.mafiascum.net/API/viewtopic.php?f=5&t=78755" and get back JSON instead

yessiree
Mafia Scum
 
User avatar
Joined: June 06, 2013
Pronoun: He

Post Post #12  (isolation #1)  » Fri Feb 15, 2019 11:17 pm

In post 10, Psyche wrote:Could you be exact about what you’d like for the API to do?


imo, the API would ideally
- require an API key that people need to register and get approval for
- be rate limited
- RESTful
- returns JSON

eg. if you wanted to grab the posts in a thread, now you need to query the url of this page, get back a fully rendered web document, then parse that document to get the content you want
with the API, you would query the API url instead, and get back a JSON of all the posts in a thread without the things you don't need

yessiree
Mafia Scum
 
User avatar
Joined: June 06, 2013
Pronoun: He

Post Post #28  (isolation #2)  » Wed Mar 20, 2019 2:48 am

Hi friends, I just found out that you can debug NodeJs apps from chrome dev tools now
https://medium.com/@paul_irish/debuggin ... 4a1b95ae27

makes life a lot easier, so i'll play around with it for a bit

yessiree
Mafia Scum
 
User avatar
Joined: June 06, 2013
Pronoun: He

Post Post #30  (isolation #3)  » Wed Apr 17, 2019 2:31 am

https://github.com/blookvoodow/modbotjs

A simple pagetopper adapted from donbot, re-written in JavaScript with NodeJs (working prototype)

yessiree
Mafia Scum
 
User avatar
Joined: June 06, 2013
Pronoun: He

Post Post #33  (isolation #4)  » Wed Apr 17, 2019 6:20 am

What do u mean by bring python based solutions to the Web? As in hosting it on a domain? Or just having a Web frontend

yessiree
Mafia Scum
 
User avatar
Joined: June 06, 2013
Pronoun: He

Post Post #82  (isolation #5)  » Wed Jan 08, 2020 1:02 am

In post 78, popsofctown wrote:Wouldn't it be cool if there was a thingy that would produce links to a player's last five completed games?

Seems possible if like a script perused post history and looked for user's name in vcs to rule out post game commentary, etc

it wouldn't be difficult at all to put together something like that, scrape the posts from player X of their last Y games
even better tho it can be combined with Bob's deception classifier to analyze the tendency to which a player engages in deceptive speech as either alignment, and basically spits out a likelihood that X is scum when given Z number of new posts


[ + ]

Return to Mafia Discussion