Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angelonazzaro/instagram-uploader
This is a simple bot written in NodeJs to automate the upload of a post on Instagram
https://github.com/angelonazzaro/instagram-uploader
bot instagram nodejs windows
Last synced: about 7 hours ago
JSON representation
This is a simple bot written in NodeJs to automate the upload of a post on Instagram
- Host: GitHub
- URL: https://github.com/angelonazzaro/instagram-uploader
- Owner: angelonazzaro
- Created: 2022-10-01T20:00:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T14:46:49.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T17:41:51.987Z (about 2 months ago)
- Topics: bot, instagram, nodejs, windows
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instagram-uploader
As the name suggests, this is a simple bot written in ```NodeJs``` to automate the upload of a post on [Instagram](https://www.instagram.com/).
The bot has been made for the purpose of posting on meme pages like: "SpongeBobEveryDay", "JoeRoganEveryDay" and so on.## Installation
Clone the repo:
```
$ git clone https://www.github.com/sl1mSha4dey/instagram-uploader.git
```Navigate to the repo folder and install the packages:
```
$ npm i
```
Once you've installed the packages, all you need to do is to configure you ```.env``` file that you will need to run the program.
You can also not use the .env file, however you will need to replace all the ```process.env.CONSTANT``` occurences with the associated data.## Configuring the ```.env``` file
Create a file named ```.env``` into the repo folder and set it up like this:
- IG_USR -> your instagram username
- IG_PWD -> your instagram password
- PHOTO_PATH -> path to the file you wish to upload as a post
- DAYS_FILE -> path to the file where the bot will keep count of the number of the days
- TIME_FILE -> path to the file where the bot will save the last time it posted### Why ```TIME_FILE```?
The initial idea was to schedule the bot to post everyday at a certain time with the [```cron```](https://www.npmjs.com/package/cron) package in **headless** mode.
Since Instagram somehow manages to block headless attempts to login I decided it was far easier to simple set up a basic activity in Windows and let the script run everytime the user logged in.## Usage
Once you've installed the packages and set up the .env file all you need to do is run the following command:
```
$ node index.js
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change :shipit:## License
License under [MIT](https://choosealicense.com/licenses/mit/)