Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

package checks Automation Direct's products' availability

Project description

automation_direct_stock

I am in no way associated with automationdirect.com

A simple python module to easily check if the product at a given url on automationdirect.com is in stock

Installation

Requires Python 3 and pip

From the PyPI:

pip install [--user] automation_direct_stock

From GitHub:

# Clone this repository
git clone https://github.com/PhilipConte/automation_direct_stock.git

# Go into the repository
cd automation_direct_stock

# install the module using pip
pip install [--user] .

Usage

Use from the commandline or a python script (make sure to put the url in quotes)

#commandline
adstock "url_to_check"

#python script
from automation_direct_stock import isInStock
isInStock("url_to_check")

Possible Return Values

#if in stock
'In Stock'

#if out of stock
'Out Of Stock'

#if not found or url invalid
'error'

#(commandline only) if invalid number of arguments passed
'bad arguments'

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
automation_direct_stock-1.0.0-py3-none-any.whl (3.2 kB) Copy SHA256 hash SHA256 Wheel py3
automation_direct_stock-1.0.0.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page