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)
- Download and configure shpub
- Clone the repository
- Log into https://instagram.com/ in Firefox. Right-click the page and "inspect element"
- Click on the "network" tab
- On the first entry in that list, right-click and "copy as curl command"
- Put the
Execute it with PHP:
$ php extract.php
After the first successful import, change
Let that script run every 30 minutes with a cron job.
- PHP 5.5+
AGPLv3 or later