1.0.0 • Published 4 years ago
@happyincent/ig-upload v1.0.0
ig-upload
Introduction
Upload photos with caption e.g., #20200913 #Taipei (Pixel 3a XL)
to Instagram in one click.
- Take image metadata as Feed Caption (exifr)
- Reverse Latitude and Longitude into City name with OpenStreetMap (node-geocoder)
- Crop image if
width < height
in a 4:5 aspect ratio (aspectratio, sharp) - Login and upload photos to Instagram Feed (instagram-private-api, fakeig.ts)
Prerequisite
Usage
0. Installation
npm install
1. Add .env into ./.env
IG_USERNAME=
IG_PASSWORD=
# Debug Only
cookie=
csrftoken=
claim=
2. Put photos into ./img/xxx.jpg
3. Run and check ./process.log
npm start
1.0.0
4 years ago