Skip to content

Downloads images of a (private) instagram profile and sends them to a Micropub endpoint

Notifications You must be signed in to change notification settings

cweiske/instagram2micropub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram to micropub

Downloads images of a (private) instagram profile and sends them to your Micropub endpoint.

Works with private profiles you are subscribed to.

Screen scrapes the instagram web interface.

Worked at 2016-09-11. Instagram may change their web interface - then this script will break. Instagram is hostile, and you should not use it.

Micropub endpoints that are known to work:

  • Known (except locations and videos)

Setup

  1. Download and configure shpub
  2. Clone the repository
  3. Copy config.php.dist to config.php
  4. Log into https://instagram.com/ in Firefox. Right-click the page and "inspect element"
  5. Click on the "network" tab
  6. Reload
  7. On the first entry in that list, right-click and "copy as curl command"
  8. Put the curl command parameters User-Agent and Cookkie into config.php

Running

Execute it with PHP:

$ php extract.php

After the first successful import, change $stopOnFirst configuration variable to true.

Let that script run every 30 minutes with a cron job.

Dependencies

License

AGPLv3 or later

About

Downloads images of a (private) instagram profile and sends them to a Micropub endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages