https://github.com/basnijholt/instacron
πΈ Instagram for the lazy - automatically upload a photo to Instagram
https://github.com/basnijholt/instacron
bot cronjob instabot instagram photos python
Last synced: about 1 year ago
JSON representation
πΈ Instagram for the lazy - automatically upload a photo to Instagram
- Host: GitHub
- URL: https://github.com/basnijholt/instacron
- Owner: basnijholt
- License: mit
- Created: 2018-04-08T12:10:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T23:16:51.000Z (over 6 years ago)
- Last Synced: 2025-05-04T23:48:20.417Z (about 1 year ago)
- Topics: bot, cronjob, instabot, instagram, photos, python
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 22
- Watchers: 7
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `instacron` Instagram for the lazy
Automatically upload a photo to Instagram
Takes a random photo from the folder `photos` and adds a caption with a random quote. For example:
> Just as treasures are uncovered from the earth, so virtue appears from good deeds, and wisdom appears from a pure and peaceful mind. To walk safely through the maze of human life, one needs the light of wisdom and the guidance of virtue. π¬π± Taken in Colombia, Villavieja π¨π΄ on 13 January 2016. #instacron π instacron.nijho.lt
> Luck is what happens when preparation meets opportunity. β½π Taken in Colombia, Cali π¨π΄ on 25 October 2015. #instacron π instacron.nijho.lt
> I think and that is all that I am. ππ€· Taken in Peru, Cusco π΅πͺ on 21 November 2015. #instacron π instacron.nijho.lt
When all photos in the [`photos`](photos) folder have been uploaded, it starts to upload the least frequently uploaded photos first.
### Why does this exist?
I like to take [pictures](https://www.instagram.com/bnijholt/) that I would like to share with the world but I am way too lazy to upload them using the app.
### Installation
You need Pythonβ₯3.6
Clone the repo with
```
git clone git@github.com:basnijholt/instacron.git
```
and install the requirements with
```
cd instacron
pip install -r requirements.txt
```
### Usage
* Put photos in [`photos`](photos) (see the expected filename structuce [here](photos).)
* run `python instacron.py` and follow the instructions to have it set up a config file.
Alternatively setup a cronjob to periodically post a photo, see [cronjob.py](cronjob.py) for instructions.
### Troubleshooting
See the [FAQ: Understanding Responses from Instagram](https://github.com/mgp25/Instagram-API/wiki/FAQ#understanding-responses-from-instagram) in the `mgp25/Instagram-API` repository for information about the error codes the Instagram API might return.