Skip to content

Instantly share code, notes, and snippets.

View eshem's full-sized avatar
🌴
semi-retired

eshem eshem

🌴
semi-retired
  • los angeles, california
View GitHub Profile
@afilhodaniel
afilhodaniel / gist:09a1df8eafeabe1584c6
Last active November 12, 2020 10:20
Upload photos to Instagram via private API with Ruby
class InstagramPrivateController < ApplicationController
def initialize(username, password, photo, caption)
@username = username
@password = password
@photo = photo
@caption = caption
@cookiepath = Tempfile.new('cookies').path
@user_agent = generate_user_agent()