Giter Club home page Giter Club logo

py-sb-botw's Introduction

py-sb-botw

Python tools for managing build of the week.

Note that scraping data directly from Reddit requires OAuth2 to be setup (https://praw.readthedocs.io/en/latest/getting_started/authentication.html#oauth). For obvious reasons, client ID and secret are not stored in the Github repo...

The scripts here also rely on Python Reddit API Wrapper (PRAW). https://praw.readthedocs.io/en/latest/getting_started/installation.html

Workflow for maintaining Hall of Fame:

1a) Run botw_scrapeJsonToYml.py with a query for finding BotW posts (in the past, used "title:botw author:Syntax1985")

1b) Manually obtain search JSON (using /r/starbound/search.json, or other means) and pass it to botw_scrapJsonToYml.py

2) Run botw_genHallOfFame.py on the YAMl produced in step 1

3) Use output of botw_genHallOfFame.py to create or edit the Hall of Fame post

botw.yml is an example of output--it is a generated file containing all entries from October 17 (beginning of 'Novakid Fluffalo Ranch') to May 23 (end of 'Monumental Disaster')

Workflow for obtaining current week's BotW entries:

  1. Run botw_entriesJsonToPost.py with the appropriate arguments. Typically use "title:botw" for the query, and skip=1 if next week's topic had already been posted, else skip=0

  2. Examine print output from botw_entriesJsonToPost.py to eliminate false positives and select the winner. Selecting winner maybe better to do by hand for now since the calls separating out the false positives in the sort are extremely naive

TODO: Need to add appropriate cutoff detection to know which posts "belong" in the current week. Old method won't work anymore (see comments in script)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.