Skip to content

Instantly share code, notes, and snippets.

View SliceOLife's full-sized avatar

Jordi van Hoorn SliceOLife

  • Amsterdam
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sliceolife on github.
  • I am slice (https://keybase.io/slice) on keybase.
  • I have a public key whose fingerprint is 4D34 52EB 9F9B 3DC1 6D87 786B EF24 563C C6B5 3B6D

To claim this, I am signing this object:

@SliceOLife
SliceOLife / bottle-origin.py
Created November 30, 2014 15:02
Finds the latest Origin on the House game and displays it.
from bottle import route, run
import requests
import bs4
root_url = 'https://www.origin.com/en-gb/store/free-games/on-the-house'
def getFreeGames():
response = requests.get(root_url)
soup = bs4.BeautifulSoup(response.text)
return [a.attrs.get('data-title') for a in soup.select('div.packart')]
@SliceOLife
SliceOLife / origin_monitor.py
Last active May 19, 2016 04:51
Checks Origin's on the House page for free games.
import requests
import bs4
from termcolor import colored
root_url = 'https://www.origin.com/en-gb/store/free-games/on-the-house'
def getFreeGames():
try:
response = requests.get(root_url)
soup = bs4.BeautifulSoup(response.text)