2023-10-19 20:00:07 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
from selenium import webdriver
|
2023-10-20 11:25:19 +00:00
|
|
|
from selenium.webdriver.common.by import By
|
|
|
|
from selenium.webdriver.common.keys import Keys
|
2023-10-19 20:00:07 +00:00
|
|
|
|
|
|
|
def initialize_webdriver():
|
|
|
|
return webdriver.Firefox()
|
|
|
|
|
2023-10-19 20:34:17 +00:00
|
|
|
def navigate_to_filegarden(browser):
|
2023-10-19 20:53:19 +00:00
|
|
|
browser.get("https://filegarden.com/login")
|
2023-10-19 20:34:17 +00:00
|
|
|
|
2023-10-20 11:25:19 +00:00
|
|
|
def login_with_password(browser, email, password):
|
|
|
|
emailInput = browser.find_element(By.ID, "email")
|
|
|
|
emailInput.send_keys(email)
|
|
|
|
emailInput.send_keys(Keys.RETURN)
|
|
|
|
|
2023-10-19 10:31:24 +00:00
|
|
|
def main():
|
2023-10-19 20:47:53 +00:00
|
|
|
with initialize_webdriver() as browser:
|
|
|
|
navigate_to_filegarden(browser)
|
2023-10-19 10:31:24 +00:00
|
|
|
# Go To Your Garden
|
|
|
|
# Log in (email)
|
|
|
|
# Go To Your Garden
|
|
|
|
# Get list of filenames in File Garden
|
|
|
|
# Get list of files in target upload directory that don't exist in File Garden (test based on filename? size? file contents?)
|
|
|
|
# For each file in the second list, go through the file upload process
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|