Coder Social home page Coder Social logo

Comments (3)

twrecked avatar twrecked commented on May 27, 2024

Annoying isn't it.

It's something to do with python requests and the Cloudflare servers. I've added cloudscraper support and it seems to work until it doesn't.

There are a couple of things you can do to try to get it to work:

  • change your user agent. Add this parameter to PyArlo, user_agent='linux'. As well as linux you can try ipad or mac or firefox.

  • force the authentication to try a particular Arlo server. You can add entries to your /etc/hosts file to try this. Change the commented out line to see if it makes a difference

104.18.30.98 ocapi-app.arlo.com
#104.18.31.98 ocapi-app.arlo.com

And once it works it will save out the authentication token and re-use it without using the Cloudflare servers. I think it's generally valid for 14 days. The token is saved in the storage directory which defaults to /tmp/.aarlo. You can alter this with the storage_dir parameter.

from pyaarlo.

scottmil avatar scottmil commented on May 27, 2024

I just discovered the same Cloudflare challenge that caused authentication to fail.
I added user_agent='linux' to the pyaarlo login on my RaspberryPi server as well as the 2 Cloudflare servers to my /ect/hosts file. I left the first server uncommented as above, and after rebooting and logging in with pyaarlo, your suggestions worked!
Thank you!

from pyaarlo.

phene avatar phene commented on May 27, 2024

Can confirm that cycling through user-agents helps.

from pyaarlo.

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.