Arlo|Smart Home Security|Wireless HD Security Cameras

Reply
Discussion stats
  • 9 Replies
  • 9651 Views
  • 0 Likes
  • 4 In Conversation
Rommac100
Aspirant
Aspirant

Hello,

  Here is a script for anyone who is looking for a script to automatically download their files from the cloud. It is written in python. It requries Splinter (http://splinter.readthedocs.org/en/latest/index.html#) to function. Was written in Arch Linux. So haven't tested it with windows yet.

 

__author__ = 'rommac100'
from splinter import Browser
with Browser('chrome') as browser:
    browser.visit("https://arlo.netgear.com/#/login")
    # Enter you Username/Email, replace the temp.
    browser.fill('userId', 'tempemail@tempemail.com')
    # Enter you password, replace the temp.
    browser.fill('password', 'tempPass')
    button = browser.find_by_id('loginButton')
    button.click()
    if browser.is_text_present('Settings'):
        print('')
        if browser.is_text_present('Library'):
            button2 = browser.find_by_id('footer_library')
            button2.click()
            if browser.is_text_present('Click on'):
                button3 = browser.find_by_id('day_ok')
                button3.click()
                if browser.is_text_present('Select'):
                    button4 = browser.find_by_id('day_ToggleSelectMode')
                    button4.click()
                    if browser.is_text_present('Select Alls'):
                        print("")
                    else:
                        button5 = browser.find_by_id('day_SelectAll')
                        button5.click()
                        if browser.is_text_present('Downloads'):
                            print('')
                        else:
                            button6 = browser.find_by_id('footer_download')
                            button6.click()
                            y = input()
    else:
        print("Found.")
        if browser.is_text_present('Library'):
            button2 = browser.find_by_id('footer_library')
            button2.click()
            if browser.is_text_present('Click on'):
                button3 = browser.find_by_id('day_ok')
                button3.click()
                if browser.is_text_present('Select'):
                    button4 = browser.find_by_id('day_ToggleSelectMode')
                    button4.click()
                    if browser.is_text_present('Select Alls'):
                        print('')
                    else:
                        button5 = browser.find_by_id('day_SelectAll')
                        button5.click()
                        if browser.is_text_present('Downloads'):
                            print("Download is present.")
                        else:
                            button6 = browser.find_by_id('footer_download')
                            button6.click()
                            print("Type:'delete' if you want to delete the files.")
                            x = input()
                            if x == "delete":
                                button7 = browser.find_by_id('footer_delete')
                                button7.click()
                                if browser.is_text_present('Are you sure'):
                                    button8 = browser.find_by_id('buttonConfirm')
                                    button8.click()
                                    if browser.is_text_present('Done'):
                                        button9 = browser.find_by_id('day_ToggleSelectMode')
                                        button9.click()
                                else:
                                    print("Did not delete it.")
                            else:
                                print("Done.")
            else:
                print("No.")

 

9 REPLIES 9
rabil
Aspirant
Aspirant

Hi. Thanks for the script. How do you run this sript in Ubuntu?

jguerdat
Guru Guru
Guru

I suspect it would be just like in Arch Linux. You still need Python and Splinter (which says it's only for Python 2.7).  I haven't run Linux in a while so I'm trying under Win10 since I already have Python loaded for the other script I've been providing since the author has not come back.

 

For Windows users who want to try this, I used Cygwin to download Splinter using git (I could email a ZIP file to anyone who is interested now that I grabbed it).  The install commandline worked fine.  There's also a Chrome driver needed for this to work which is basically unsupported by Splinter so maybe my problem is related.  The problem is that a Chrome window opens and buttons are pushed resulting in the download and then it hangs.  The error is:

 

C:\Users\jguerdat\Desktop>python "ArloDownload - new.py"


Traceback (most recent call last):
File "ArloDownload - new.py", line 32, in <module>
y = input()
File "<string>", line 0

^
SyntaxError: unexpected EOF while parsing

 

If I hit Return, the Chrome window closes, the file is in my Downloads folder and the error message is displayed.

 

Even if this flew perfectly, I prefer the other script, putting the download into a dated folder (likely easily done here, too) as well as fewer hoops to jump through to install and execute.  This one is interesting in that it uses the web browser to perform the task, automatically pushing buttons for you.  YMMV.

Rommac100
Aspirant
Aspirant

Hello, 

  Try using chromium. That was the only way I could get it working. Since firefox would not allow downloading.

Rommac100
Aspirant
Aspirant

Also take a look at their website to get the chrome driver.

jguerdat
Guru Guru
Guru

According to http://splinter.readthedocs.org/en/latest/index.html#drivers there are drivers for both Chrome and Firefox. I haven't tried the Firefox one - maybe tomorrow.

Rommac100
Aspirant
Aspirant

Also here is the link to the chrome driver if you want to try it.  http://chromedriver.storage.googleapis.com/index.html?path=2.9/

jumpernz
Tutor
Tutor

You guys talk funny. Smiley Happy

jguerdat
Guru Guru
Guru

We look funny, too...  😜

Rommac100
Aspirant
Aspirant
Found a link to splinter where you don't have to use git. https://pypi.python.org/pypi/splinter
Discussion stats
  • 9 Replies
  • 9652 Views
  • 0 Likes
  • 4 In Conversation