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
# http://naics.codeforamerica.org #includes details on queries | |
#!!! missing NAICS codes - key errors | |
# see https://www.census.gov/eos/www/naics/ | |
# get 2017 updated xml NAICS code listing here - https://www.census.gov/eos/www/naics/2017NAICS/2017_NAICS_Structure.xlsx | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import ast |
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 requests | |
from bs4 import BeautifulSoup | |
import re | |
likelyURLlookup = {} # use dynamic programming to build a lookup table | |
def getLikelyURL(vendorname): | |
try: | |
likelyURLlookup[vendorname] | |
except KeyError: |
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 | |
def alertMe(phrase): | |
text2speak = 'say ' + '"' + phrase + '"' | |
os.system(text2speak) | |
alertMe("Alert Me Function Works") |