This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import dataset | |
| import requests | |
| import thready | |
| import datetime | |
| YEARS = range(2000, datetime.datetime.now().year + 1) | |
| MAX = 500000 | |
| engine = dataset.connect('sqlite:///rednotices.sqlite3') | |
| notices = engine['notices'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| board = [] | |
| for x in range(0,5): | |
| board.append(["O"] * 5) | |
| def print_board(board): | |
| for row in board: | |
| print " ".join(row) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| from selenium.common.exceptions import NoSuchElementException | |
| from selenium.webdriver.common.keys import Keys | |
| def selectOption(select,texttoselect): | |
| options = select.find_elements_by_tag_name("option") | |
| if options: | |
| for o in options: | |
| if o.text == texttoselect: |