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
# libraries | |
# --------- | |
import SHA.hmac_sha256, Base64.base64encode, Base64.base64decode | |
# this is the URL we'll use as a base for all requests. | |
# ----------------------------------------------------- | |
api_url = "https://api.exchange.coinbase.com" | |
# struct for required CB info | |
# --------------------------- |
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
# This script is a first pass at creating a clean Hinge dataset that one can use to | |
# visualize using Python or R. | |
# | |
# You can request your Hinge data from the app, and the file in question that we're | |
# using here is "matches.json". | |
# | |
# Author: Michael Johnson | |
# Last Updated: June 2, 2021 | |
# |
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
# ==================================================================== | |
# ---------------- | |
# APEX Information | |
# ---------------- | |
# This script simply defines the urls of the information that we need | |
# exported out of APEX. | |
# | |
# Note that the cost basis URLs access APEX's API. This means that | |
# we only have to open these pages in Selenium in order to export this | |
# information. |
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
# ================================================ | |
# Export portfolio information using Selenium & R | |
# ================================================ | |
# note that apex_information.py is a separate script that you need | |
# to run this one. I've uploaded that (sans account information) here: | |
# https://gist.github.com/mistermichaelll/7d6cb085000adf8c33087df3ae1b3a40 | |
# libraries utilized | |
# & APEX information script |
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
# ================================================================================== | |
# M1 Finance/Google Sheets Tracker | |
# -------------------------------- | |
# Author: Michael Johnson | |
# Last updated: May 25, 2020 | |
# | |
# This script works in tandem with a Python script to easily | |
# access and update information relating to my M1 Finance portfolio | |
# in a Google Sheet. | |
# |
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
# ===================================================== | |
# This script was created to help parse the information | |
# in a text interview programmatically as opposed to | |
# doing so by hand. Currently, this program will | |
# find a specifed word, number the first ocurrence of | |
# the word, and return the phrase before and after the | |
# word. | |
# ===================================================== | |
import os |