Giter Site home page Giter Site logo

instagram-poster's Introduction

James's github stats

Top Langs

instagram-poster's People

Contributors

boreales avatar jamesgrams avatar tiagopaes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

instagram-poster's Issues

Could not use file picker

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:
Screenshot 2022-08-22 132709

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.

This is not working?

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?

Getting timedout on "waiting for the file inputs".

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.

login button not found

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.