Outline:
Hackathon: how to get started
Apps Script
Google Apps Script
Google Apps Script is a JavaScript-based language that can be used to interact with various Google Documents including Docs, Sheets, and Forms.
Example: Pizza Form
Please complete the following important survey: https://goo.gl/forms/TUl30U15bop34jxN2
Example: Pizza Sheet
The responses are collected in a Google sheet, and we can add triggers that will execute program code on various actions.
Basic website, src-code
src-code
If This Then That (IFTTT)
IFTTT
IFTTT a web-based service that can be used to form applets out of simple conditional statements with web services like Gmail, Facebook, Instagram, Twitter, etc. ifttt.com/create
IFTTT
There’s hundreds of web services to easily connect with. Each service has several triggers which can be linked together in statements like:
If the weather changes, then text me a warning
If I like something on Instagram, then save it to Dropbox
IFTTT
If you’re looking for an example, there’s also millions of premade recipes ifttt.com/discover
Web APIs in Python
HTTP
HTTP Requests
HTTP Verbs
Authentication
Twitter KEY
#!/usr/bin/env python3
from requests_oauthlib import OAuth1
consumer_key = 'GmwHQha6DItHSN07zJW7sUHNZ'
consumer_secret = 'G1rfuKfrKbxiFotMcUqFkt2jQdd43R5xCTl2vJqP9U0gqwyTCx'
oauth_token = '855487201844637696-ydUp69QwVswjCYl7JXHiIOm0AzIFaB0'
oauth_token_secret = 'Eylxy4DEj7z0GmBrOjgJZ1cia8mZLGks4VQPDKFpoYXPm'
auth = OAuth1(consumer_key, consumer_secret, oauth_token, oauth_token_secret)
Status Codes
Let’s make a GET request!
Source: https://dev.twitter.com/rest/public/search
Let’s make a GET request!
Source: https://dev.twitter.com/rest/reference/get/search/tweets
Let’s make a GET request!
Handling JSON Data
Handling JSON Data!
Handling JSON Data!
Twitter Docs / Other Resources
Visualization tools
Carto.com
CARTO Builder is a web-based drag and drop analysis tool for analysts and business users to discover and predict key insights from location data.
ArcGIS API for Javascript
Data Sources and APIs
Google BigQuery Pubic Datasets
World Bank Datasets
US Government data
Map-related data
Social Networking APIs
Good places to look for more data
Please upload code + presentation to devpost BEFORE 8pm
Have an idea? Stand up and share!