npm.io
1.0.0 • Published 5 years ago

twitter-auto-post-image

Licence
ISC
Version
1.0.0
Deps
1
Size
2 kB
Vulns
0
Weekly
0

Twitter-Auto-Post-Image is a nodejs package to post image on twitter using browser automation. It currently runs only on windows.

Installation

npm install twitter-auto-post-image

Example

In this example we first import package, then we login with cookies and then post image on twitter.

var twitter=require("twitter-auto-post-image");

function tweet(){
	twitter.post_image('C:/Users/image.png', 'Good Morning')
}
twitter.login_cookie(cookie_list,tweet)
DataKund

datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.

Import
var twitter=require("twitter-auto-post-image");
Login with credentials
twitter.login(username,password)
Login with cookies
twitter.login_cookie(list_of_cookies)
Tweet
twitter.post_image('image path', 'tweet text')
Cookies

To login with cookies Edit this Cookie Extension can be added to browser

Contact Us