This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TwitterApi } from 'twitter-api-v2'; | |
const rl = require('readline'); | |
const APP_INFOS = { appKey: 'XXX', appSecret: 'YYY' }; | |
const readline = rl.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { IgApiClient } from 'instagram-private-api'; | |
// @ts-ignore (dependency not typed) | |
import Instagram from 'instagram-web-api' | |
import * as dotenv from 'dotenv'; | |
dotenv.config({ path: __dirname+'/.env' }); | |
const username = process.env.IG_USERNAME || ''; | |
const password = process.env.IG_PASSWORD || ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { IgApiClient } from 'instagram-private-api'; | |
import * as dotenv from 'dotenv'; | |
import {AccountFollowersFeedResponseUsersItem} from "instagram-private-api/dist/responses"; | |
dotenv.config({ path: __dirname+'/.env' }); | |
const username = process.env.IG_USERNAME as string; | |
const password = process.env.IG_PASSWORD as string; | |
const INTERVAL_BETWEEN_CHECKS = 15000; // in ms |