GithubHelp home page GithubHelp logo

pixincreate / wedrivechef Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.73 MB

Automated Web Driver Checker and Fetcher for Selenium Python implementation

License: Creative Commons Zero v1.0 Universal

Python 100.00%
selenium selenium-webdriver webdriver pixincreate python webdriver-automation automation

wedrivechef's Introduction

Web Driver Checker and Fetcher [WeDriveCheF]

(Suggest a better name, thanks!)

As the title says, this tiny module's only job is to check for suitable web_driver on your PC for ease of use.

Usage:

  • Before using make sure you run the requirements.txt by using the command:
    pip install -r requirements.txt
# Enter your URL here or directly inside the `get` function
URL = "https://pixincreate.github.io"

# Call the webdriver on your code by typing the below command
# This assigns the suitable driver found on your PC

# Put head_mode as `headless` if you want it to be headless,
# Else, give it any random value within quotes.
driver = web_driver(head_mode)

# Web driver opens up the link with desired head_mode in incognito / private mode. 
driver.get(URL)

# Make sure you use the below command once you're done with your work, else
# it'll remain active in the background drain battery and memory
driver.quit()

Working:

  • When you call the function web_driver and assign it to a driver, it initially goes through all your installed applications
    • No need to worry, none of your data is transmitted
  • It checks for these below given browsers:
    • Brave
    • Brave Nightly
    • Firefox
    • Google Chrome (I don't recommend using it as it is found to be insecure based on numerous reports and it is a threat to user-privacy)
  • If the browser is Brave, it assigns its binary file, if chrome or firefox, raises a flag as they're natively supported by selenium
  • Depending on the browser type, the driver is assigned with incognito/private as the argument
    • In case, the driver doesn't exist or outdated, it automatically opens up the default web browsers to download the latest web_driver.exe file (you've to download this manually!)
  • This driver is then returned to the calling function / method which later calls for the URL.

Requirements:

  • Operating System: Windows (Tested only on Windows)
  • Python Version: 3.5+ (3.10+ preferred)
  • Packages Required: WinApps, Selenium (Get's installed upon running requirements.txt)

LICENSE:

This repo come under CC0 1.0 Universal copyrighted to pixincreate. Click here to learn more about the permissions offered by this license!

wedrivechef's People

Contributors

pixincreate avatar

Watchers

 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.