Skip to content

chocomilku/osumod-to-trello-cli

Repository files navigation

osumod-to-trello-cli

tool to scrape cards from osumod to a trello board list

why

  • why not

  • for archiving mod requests purposes

  • able to provide more options than the options found at osumod

  • able to add self pick maps

todo

  • enter self pick maps using osu api

  • gui web app version

  • cooler command line

  • implement oauth trello automatically using express

  • implement selecting trello board, list, and labels

  • create the scraper first dumbass

  • display what is going on beautifully

  • use cheerio to navigate around the scraped html

  • send the cards to the trello board

  • filter out non-pending a certain card with a specific status maps

  • add options to scraper

  • add M4M label for M4M mod type

  • add config file instead of relying on .env file

  • add startup file to fill up the config file

.env configuration

KEY=TRELLOAPIKEY
TOKEN=TRELLOAPITOKEN
IDLIST=IDLIST
OSU_CLIENTID=CLIENTID
OSU_CLIENTSECRET=CLIENTSECRET

KEY is your Trello api key

TOKEN is your token. basically your authorization.

IDLIST is the id of the list that the cards are going to

OSU_CLIENTID your client id from osu oauth application

OSU_CLIENTSECRET your client secret from osu oauth application

config.json configuration

{
	"username": "chocomilku-",
	"trello": {
		"request": "requestlabel",
		"m4m": "m4mlabel",
		"self_pick": "selfpicklabel"
	}
}

username your username on osu and osumod

request id of the label for the "request" request from your trello board

m4m id of the label for the "M4M" request from your trello board

self_pick id of the label for the "Self Pick" request from your trello board

© 2022 chocomilku

About

Scrapes osumod cards to a Trello list

Resources

License

Stars

Watchers

Forks