This topic has been closed to new posts due to inactivity. We hope you'll join the conversation by posting to an open topic or starting a new one.
Script for Automatic Download of Clips
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.")
- Related Labels:
-
Before You Buy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi. Thanks for the script. How do you run this sript in Ubuntu?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Try using chromium. That was the only way I could get it working. Since firefox would not allow downloading.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also take a look at their website to get the chrome driver.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You guys talk funny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We look funny, too... 😜
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content