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
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy-to-digital-ocean-droplet: | |
runs-on: ubuntu-latest | |
name: Deploy Website | |
steps: |
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 | |
PATTERN = "author: leonson" | |
YEAR = 2012 | |
def unpublish(filepath, pattern): | |
file_handle = open(filepath, "r") | |
contents = file_handle.readlines() | |
file_handle.close() | |
index = 0 |
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
# Inspired by https://gist.github.com/saikatbhadra/6629031 | |
import mechanize | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
import random | |
import time | |
TGT_DATE = 'April 21, 2015' #i.e. 'September 30, 2014' | |
OFFICE_ID = '548' # officeid for RWC DMV. See HTML code for other office ids |