Skip to content

Instantly share code, notes, and snippets.

View ajankelo's full-sized avatar

Ari ajankelo

View GitHub Profile
@ajankelo
ajankelo / api-batching-to-csv.py
Created April 25, 2023 19:24 — forked from nmilford/api-batching-to-csv.py
Example on how to use limit/offset to collect and export data from the PerformLine API in bulk.
# This code demonstrates how to loop through an API using limit+offset.
#
# It will get all of the results as it pages through the data by limit and
# offset preventing the backend that serves it from getting overwhelemed.
#
# It will then put all of that collected data into a CSV for later processing.
#
# This code was thrown together as a demonstration, no warrenties are given or
# implied.
import requests
# ------------- ALL THIS REQUIRED FOR PAPERSPACE -------------
FROM python:3.9.10
ENV APP_HOME /
WORKDIR $APP_HOME
# Install base utilities
RUN apt-get update && \
# apt-get install -y build-essentials && \
apt-get install -y wget && \
@ajankelo
ajankelo / keybase.md
Created May 28, 2017 03:17
keybase.md

Keybase proof

I hereby claim:

  • I am ajankelo on github.
  • I am ajankelo (https://keybase.io/ajankelo) on keybase.
  • I have a public key ASC0fuWkjU1GTJ1NA_oM6qr_c7CeOEBr7Bf5LHH7GY87JAo

To claim this, I am signing this object:

<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke:white;
stroke-width: 1px;
}
.counties {
fill: none;