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


[ + ]

Return to Mafia Discussion