Script to download RV50/RV55 templates

Is there a script to download templates files without physically accessing the internal web page? Like using curl or something similar?

Hi dfeng,

Please refer to below for sample script in python for downloading the template in your gateway.

from selenium import webdriver
import time

#Replace any other driver you wish to use
chromedriver = ‘C:/chromedriver_win32/chromedriver.exe’
browser = webdriver.Chrome(chromedriver)

url = “Your Gateways address” #Ex:http://192.168.86.21:443
browser.get(url)
time.sleep(3)
#Assuming that you are using default username is user, you no need to enable the next line
#username = browser.find_element_by_id(“username”)
#username.send_keys(“user”)

#Enter password
password = browser.find_element_by_id(“password”)
password.send_keys(“your password”) #enter password in this line

time.sleep(3)

browser.find_element_by_name(“Login”).click()

time.sleep(3)

browser.find_element_by_xpath(“//a[@title=‘Load Template’]”).click()

time.sleep(3)

browser.find_element_by_name(“download_template”).click()

To run this script, please install:

  1. Python3
  2. selenium library for python3
  3. Install chromedriver (or FireFox or anything you wish to use)

If this is helpful for you, please help to tick on “Solution” :slight_smile: . It may help other having same request.

Thanks,