1

Recently in the last few months my computer has been constantly telling me to update the flash player, CCleaner is Always out of date & there is usually an update to be done to Bleachbit or Nvidia.

I know that https://ninite.com used to do automatic updates, but they no longer do & is only for premium/pro membership, the same as it is with CCleaner. its time consuming to keep constantly checking these for updates, downloading the files, going to my downloads, going though there installers etc.. this is time that could be better spent.

related questions that pertain to these issues found here on Stack Exchange & other sites:

      Two Instances of Adobe Flash Player
      Flash Update Notifications

Only including these for other peoples reference as they don't actually address my attempts at trying to fix this issue. Plus half of them are outdated.

I have been learning PHP & Javascript, but have not learnt much python so far. Can anybody give me a rough starting point of how to build a python code to check for updates for these various different apps on my system.

I am Using windows 10, with firefox developer edition.. Not looking for a full blown script just pointers starting points & help or worthwhile debate on how to go about this.

Some Questions & resources that may help me build the script:
      Python List installed programs
      Asynchronous Web Crawler
      Custom Exception Handling
      Manage all maintenance-work on my pc
      Automate the Boring Stuff with Python
      Preparing & Automating stuff
      Process handling
      Urllib Docs

This is the script that I have so far

try:
    import os
    import logging
    import selenium
except:
    print("Error importing initials")
else:

try:
    from selenium import webdriver
    from selenium.webdriver.common.by import By
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support.expected_conditions import presence_of_element_located
except:
    print("Error importing from")

from selenium.webdriver.firefox import Options
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary

I know this is not correct but I cannot get Sublime txt 3 to output python errors and any form of online Python validation tool I have used spits out an error as soon as it reaches import selenium.

I would like to build a script that I can double click every couple of weeks, that will open up Firefox, Check Which apps are out of date and then update as necessary.

I already have Adobe flash player set to automatic updates but its just Ignoreing me & taking the p*** Please comment or share articles that can help.

Think I may have to install the gecko driver api, but niot 100% sure about this.

This is how far I have got so far, Installed selenium through pip install. Python 3.7 was already installed. Managed to get Sublime text editor 3 to start outputting error's into a build file through tools > build system > Python 3 Now stuck again.. Will update as I learn more.

import os
import logging
import selenium

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException

def user_input_progs(programs, params):
    # User Select Parameters.

def is_element_present(self, how, what):
    # Test if C drive is present or been renamed.
    # Search for the programs in the os/c:directory.
    # Test programs.
    os.path.isdir(C)
    # def runFFtest():
       # fallback to chrome, safari, opera. 

Stuck Again.

Just Found these resources to attempt to get the Version Number of a program:
PyWin32 get Version number of an Application
SO Q? How to Access File Properties
SO Q? Finding the Version of an Application Through Python

Things I would Need to do would be Create an Array of filepaths to the Programs on My Os that regularly need updating, preferably with some sort of UI to edit or update this list, Search my OS C Drive:Program Files for All .exe files and match these to the ones that are chosen.

Use URLLib or webdriver & Beautiful Soup to Scrape the Websites of those companies to check the version number against the one currently installed, then if necessary Get the downloads and Automate the Installation process.

More Resources:

Tried to Install win32api via pip install, but it couldn't find the right version installed these versions instead: pywin32, pypiwin32, pypiwin32-223, pywin32-227 more research needed still...

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Ryan Stone
  • 345
  • 4
  • 19

0 Answers0