Code Challenge 38 - Build Your Own Hacktoberfest Checker With Bottle

PyBites, Wed 04 October 2017, Challenge

API, Bottle, DigitalOcean, GitHub, Hacktoberfest, Web development

Life is about facing new challenges - Kostya Tszyu

Hi Pythonistas, Hacktoberfest started. Let's make open source better and track our progress with a little app you will build using the Bottle web framework.

It's Hacktoberfest

DigitalOcean's Hacktoberfest is a month-long celebration of open source software. You can earn a cool T-shirt making four pull requests to any public repo on GitHub between October 1–31.

Potential projects you could contribute to are listed on their site but PRs you make for our code challenges count too!

The Challenge

Hacktoberfest Checker (code) is a neat web app to see how close you are to achieving the requirements (4 PRs) for a free t-shirt. It is written in JS.

We thought it would be a cool challenge to build this with Bottle (optionally adding the JS you'd like):

  1. Make a virtual env and install Bottle.

  2. Make a form to ask for the user. Optionally add GitHub login to retrieve the user automatically.

  3. Retrieve the PRs via the GitHub API. You can borrow the required query here (L15). Yes, the date range seems odd but it accounts for various timezones. It was taken from DigitalOcean's 'official' checker (as explained in this issue).

  4. Display the PR's and progress as (n out of 4). You can use these status messages (L67).

  5. (bonus) allow checking multiple GH handles at once so you can compare progress among fellow developers. It seems you can get this info in a single query - example.


To get credit PR your work to our Community branch of our Challenges repo. See detailed instructions here.

And remember: any of our code challenges you PR this month counts towards the Hacktoberfest goal, have fun!


Our goal is to learn and teach you Python through practical exercises. Learning a programming language is way more fun as a community!

For any feedback, issues or ideas use GH Issues, tweet us or drop us an email.

Keep Calm and Code in Python!

-- PyBites

PyBites Python Tips

Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.

Get our Python Tips Book

"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H

"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B

"This is now my favourite first Python go-to reference." - Anthony L

"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S

Get the book