Downloads images of a (private) instagram profile and sends them to a Micropub endpoint
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.rst
config.php.dist
extract.php
gpx.php

README.rst

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