jamesgrams / instagram-poster Goto Github PK
View Code? Open in Web Editor NEWCLI to post images to Instagram using Puppeteer
License: MIT License
CLI to post images to Instagram using Puppeteer
License: MIT License
The post is uploaded successful but account got blocked after that. Instagram checking for security.
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch [email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/instagram-poster/index.js b/node_modules/instagram-poster/index.js
index 7ea6359..551c331 100644
--- a/node_modules/instagram-poster/index.js
+++ b/node_modules/instagram-poster/index.js
@@ -154,6 +154,7 @@ async function run() {
console.debug('could not use file picker');
try {
await page.click("[aria-label='New Post']");
+ console.debug('Clicking on new post');
}
catch(err) {/*ok*/}
}
This issue body was partially generated by patch-package.
i keep getting the error:
at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:5627) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
Can you help me with this?
Hi,
This is now getting stuck on "waiting for the file inputs"
Here is my log.
launching puppeteer
visiting the instagram login page
waiting for the username input
typing in the username and password
clicking log in
going to instagram home
waiting for the file inputs
(node:6478) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "input[type='file']" failed: timeout 30000ms exceeded
at new WaitTask (/Users/abc/instagram-poster-master 2/node_modules/puppeteer/lib/DOMWorld.js:554:28)
at DOMWorld._waitForSelectorOrXPath (/Users/abc/instagram-poster-master 2/node_modules/puppeteer/lib/DOMWorld.js:483:22)
at DOMWorld.waitForSelector (/Users/abc/instagram-poster-master 2/node_modules/puppeteer/lib/DOMWorld.js:437:17)
at Frame.waitForSelector (/Users/abc/instagram-poster-master 2/node_modules/puppeteer/lib/FrameManager.js:606:47)
at Frame.<anonymous> (/Users/abc/instagram-poster-master 2/node_modules/puppeteer/lib/helper.js:109:23)
at Page.waitForSelector (/Users/abc/instagram-poster-master 2/node_modules/puppeteer/lib/Page.js:1073:29)
at run (/Users/abc/instagram-poster-master 2/index.js:116:16)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:6478) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6478) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Is there an updated to the login page?
launching puppeteer
visiting the instagram login page
cookies modal not found no need to accept
waiting for the username input
typing in the username and password
clicking log in
login button not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.