Computational Mafia

This forum is for discussion related to the game.
Locked
User avatar
yessiree
yessiree
he
Mafia Scum
User avatar
User avatar
yessiree
he
Mafia Scum
Mafia Scum
Posts: 4386
Joined: June 6, 2013
Pronoun: he

Post Post #9 (isolation #0) » Fri Feb 15, 2019 6:52 am

Post by yessiree »

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 "[b]API[/b]/viewtopic.php?f=5&t=78755" and get back JSON instead
User avatar
yessiree
yessiree
he
Mafia Scum
User avatar
User avatar
yessiree
he
Mafia Scum
Mafia Scum
Posts: 4386
Joined: June 6, 2013
Pronoun: he

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

Post by yessiree »

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
User avatar
yessiree
yessiree
he
Mafia Scum
User avatar
User avatar
yessiree
he
Mafia Scum
Mafia Scum
Posts: 4386
Joined: June 6, 2013
Pronoun: he

Post Post #28 (isolation #2) » Tue Mar 19, 2019 8:48 pm

Post by yessiree »

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
User avatar
yessiree
yessiree
he
Mafia Scum
User avatar
User avatar
yessiree
he
Mafia Scum
Mafia Scum
Posts: 4386
Joined: June 6, 2013
Pronoun: he

Post Post #30 (isolation #3) » Tue Apr 16, 2019 8:31 pm

Post by yessiree »

https://github.com/blookvoodow/modbotjs

A simple pagetopper adapted from donbot, re-written in JavaScript with NodeJs (working prototype)
User avatar
yessiree
yessiree
he
Mafia Scum
User avatar
User avatar
yessiree
he
Mafia Scum
Mafia Scum
Posts: 4386
Joined: June 6, 2013
Pronoun: he

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

Post by yessiree »

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
User avatar
yessiree
yessiree
he
Mafia Scum
User avatar
User avatar
yessiree
he
Mafia Scum
Mafia Scum
Posts: 4386
Joined: June 6, 2013
Pronoun: he

Post Post #82 (isolation #5) » Tue Jan 07, 2020 7:02 pm

Post by yessiree »

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
Locked

Return to “Mafia Discussion”