Git Product home page Git Product logo

Comments (5)

maximedrn avatar maximedrn commented on May 26, 2024 1

I found out that the Pinboard part is buggy. I have to work on it. I will release a fix in less than 3 days.

from pinterest-automatic-upload.

maximedrn avatar maximedrn commented on May 26, 2024

Increase the timer from 30 seconds to 60 or 90 seconds at lines 171-172:

WDW(self.driver, 30).until(  # Wait until URL changes.
                lambda _: self.driver.current_url != self.login_url)

If it still doesn't work, you can increase the timers at lines 138 and 143:

def clickable(self, element: str) -> None:
        """Click on element if it's clickable using Selenium."""
        WDW(self.driver, 5).until(EC.element_to_be_clickable(
            (By.XPATH, element))).click()

    def visible(self, element: str):
        """Check if element is visible using Selenium."""
        return WDW(self.driver, 15).until(EC.visibility_of_element_located(
            (By.XPATH, element)))

This bot can't run in the background, I added this feature without testing it. I received a lot of feedback on this and found out that Selenium does not fully support headless mode. I recommend to use this bot as a "background screen", leave it in full screen but behind another tab you are working on.

from pinterest-automatic-upload.

samcome avatar samcome commented on May 26, 2024

I have change the timer, but it's the same.

Login to Pinterest. Logged.

Uploading pins nĀ°1/149. Failed. Message:
Stacktrace:
0 chromedriver 0x0000000109e86de9 __gxx_personality_v0 + 587625
1 chromedriver 0x0000000109e11433 __gxx_personality_v0 + 105907
2 chromedriver 0x00000001099cc578 chromedriver + 173432
3 chromedriver 0x0000000109a020e2 chromedriver + 393442
4 chromedriver 0x0000000109a022a1 chromedriver + 393889
5 chromedriver 0x0000000109a34904 chromedriver + 600324
6 chromedriver 0x0000000109a1f92d chromedriver + 514349
7 chromedriver 0x0000000109a32583 chromedriver + 591235
8 chromedriver 0x0000000109a1fb53 chromedriver + 514899
9 chromedriver 0x00000001099f520e chromedriver + 340494
10 chromedriver 0x00000001099f6485 chromedriver + 345221
11 chromedriver 0x0000000109e426db __gxx_personality_v0 + 307291
12 chromedriver 0x0000000109e595cf __gxx_personality_v0 + 401231
13 chromedriver 0x0000000109e5f7ab __gxx_personality_v0 + 426283
14 chromedriver 0x0000000109e5a93a __gxx_personality_v0 + 406202
15 chromedriver 0x0000000109e36d81 __gxx_personality_v0 + 259841
16 chromedriver 0x0000000109e76c78 __gxx_personality_v0 + 521720
17 chromedriver 0x0000000109e76e01 __gxx_personality_v0 + 522113
18 chromedriver 0x0000000109e8e268 __gxx_personality_v0 + 617448
19 libsystem_pthread.dylib 0x00007fff2041c8fc _pthread_start + 224
20 libsystem_pthread.dylib 0x00007fff20418443 thread_start + 15

from pinterest-automatic-upload.

maximedrn avatar maximedrn commented on May 26, 2024

Do you have a 2FA on your account?
When does the bot crash? After inputting the credentials? When loading to account page? When inputting details of the Pin?

from pinterest-automatic-upload.

samcome avatar samcome commented on May 26, 2024

I don't have 2FA
Test 1:
The bot fills in the log / pass fields
The loader is set up and reloads the home page without the log / pass being done
There is a slight delay without anything happening and it crashes the first in the list and goes to the second with an error then to the third ...

Test 2:
I tested by hand to fill the log / pass during the first sending
I am logged in
The page changes from the home page to the sending page of a pin
Nothing happens, the sending crashes and moves on to another ...

from pinterest-automatic-upload.

Related Issues (10)

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.