Skip to content

Instantly share code, notes, and snippets.

View bondurantdt's full-sized avatar

David Bondurant bondurantdt

  • Interlochen Center for the Arts
  • Traverse City, MI
View GitHub Profile
##
#Dependencies: rclone (latest beta, or >1.42 configured to Google Drive and S3), powershell
#Process: Deletes existing items in path, uses rclone to grab all files in a specific folder
#(configured with 'rclone config' command),
#exports those files from Google Drive to PDF, using a couple
#arrays, renames the PDFs to
#the Google Drive File ID, then copies to S3.
##
$dt = Get-Date -format "MMddyyyy"
@bondurantdt
bondurantdt / Youtube-ICAWebcastHits.py
Last active December 11, 2022 19:35
Youtube Data API - Python - playlistItems and videos Methods - Get views and titles for video IDs in a playlist.
#!/usr/bin/python
'''
This code will query the Youtube Data API (requires a client.json file, see below)
to determine videos in the ICA webcast playlist and their viewcount.
Queries the playlistItems method first to obtain video IDs (Cost 1 unit, in addition
to the costs of the resource parts queried).
Queries the videos method next to parse the friendly name and view count
@bondurantdt
bondurantdt / ICA-WebcastArchive-Metricgrabber.py
Created February 27, 2016 07:41
ICA Webcast Archive - Vimeo Stat Printer
import vimeo
import json
v = vimeo.VimeoClient(
token='TOKEN',
key='APPKEY',
secret='APISECRET')
# Make the request to Vimeo for Channel JSON info.
about_me = v.get('https://api.vimeo.com/channels/icawebcast/videos?page=1&per_page=100&sort=plays&direction=desc')