Giter Site home page Giter Site logo

Comments (9)

rgov avatar rgov commented on August 29, 2024 1

Apparently yes: https://stackoverflow.com/questions/38732822/compile-chromedriver-on-arm

I was able to just use apt install chromium-driver and then presumably the resulting tool is already in $PATH so it's not necessary to do anything else.

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

Interesting. Does this fail at any stage using chromedriver-binary as it is in the repo now?
Specifically, does importation append the wrong binary to the front of $PATH?

from whole-foods-deliverance.

rgov avatar rgov commented on August 29, 2024

Well if you install chromedriver-binary it will give you a chromedriver that cannot be executed so as soon as the code calls this tool, it will fail.

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

Right, totally get that, but does the code in this repo work as-is, assuming you've installed chromium-driver via apt?
Or does the importation of chromedriver-binary alter PATH such that it tries to use the x86 binary and fails?

from whole-foods-deliverance.

rgov avatar rgov commented on August 29, 2024

Ah, right. chromedriver-binary prefixes PATH so it would seem that the kernel will attempt to launch the x86 binary before the installed package.

I haven't tried yet because this doesn't support logging into Amazon, it expects Chrome is already logged in, so I wasn't able to use it in the headless manner I expected.

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

Yeah, I thought that might be the case. A conditional import based on platform.machine() may be a viable option, though that doesn't help with the headless bit.

I had thought about automating the login process - sending values to elements is easy enough, but things get complicated when you've either enabled, or Amazon forces OTP.

from whole-foods-deliverance.

rgov avatar rgov commented on August 29, 2024

Can I just copy cookies from a logged in browser on another machine?

from whole-foods-deliverance.

eoprede avatar eoprede commented on August 29, 2024

I can confirm that the chromedriver.exe placed in the folder with the script is getting executed before chromedriver-binary. So it should be easy to override it with whatever other driver one may want.

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@rgov I looked into that initially, but there are various hoops one has to jump through to programmatically access profile protected storage (cookes, localStorage, etc.).
On OSX anyway, it requires access to the Chrome Safe Storage keychain item.

You may be able to do this manually, however, or by running a Selenium instance on the authenticated machine, using your authenticated chrome profile (via the user-data-dir argument to ChromeOptions), then using something like utils.store_session_data from this repo.

from whole-foods-deliverance.

Related Issues (20)

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.