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:
I hereby claim:
To claim this, I am signing this object:
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')] |
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) |