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
- Copy
config.php.dist
toconfig.php
- Log into https://instagram.com/ in Firefox. Right-click the page and "inspect element"
- Click on the "network" tab
- Reload
- On the first entry in that list, right-click and "copy as curl command"
- Put the
curl
command parametersUser-Agent
andCookkie
intoconfig.php
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.
- PHP 5.5+
- shpub
AGPLv3 or later