Git Product home page Git Product logo

forcefetchbot's Introduction

ForceFetchBot

A program to interact with Genscape's Manual Force Fetcher PHP webpage to re-run jobs in a date range

By Dominic Eggerman

Installation

In order to run the program, you will need selenium, which can be installed from the command line with pip install selenium. Selenium is a module that can automate browsers and test web applications.

You will also need the ChromeDriver WebDriver for Chrome (https://sites.google.com/a/chromium.org/chromedriver/downloads). I have included the file in the /drivers/ folder in this program. The program accesses this file so it is important not to move things around (or change the paths).

How To - forceFetchBot

Launch forceFetchBot from the command line with python forceFetchBot.py. The input instructions are straightforward from then on out. Note that the chrome webpage that the program creates acts as a interactable webpage, and can be manipulated by the user like an internet browser. Therefore it is important to remember not to click around the driver page as it will throw off the program, which does not anticipate any user input after launching.

To stop the driver running, you can close the driver window or press CTRL + C while focusing on the command line to cause a keyboard interrupt.

Known bugs

  • At times the web driver can hang up when selecting a source id and the job table does not load and is not caught by the backup while loop. This bug is seen when the driver clicks the button to force fetch and the web message appears saying "Please select a dataset".
    • You can manually fix this bug as the program is running. When the terminal starts printing "Waiting for fetcher to initialize...", you can select another pipeline, re-select the desired pipeline, check the desired job box, and click the "Force Fetch" button. The loop will catch the popup window and the program will continue.

forcefetchbot's People

Contributors

dominiceggerman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.