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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file automation_direct_stock-1.0.0.tar.gz
.
File metadata
- Download URL: automation_direct_stock-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa91e1a20ca2a2134bbd5307b7600663de50704020121a1b9d8a4a894b04dac |
|
MD5 | 7b0db07df1e9a14316092bef0305b3f1 |
|
BLAKE2b-256 | 1446d1a01479bb633747b5eacbe7c0fb6d0b78b5f7890a7d77954415a6e709c1 |
File details
Details for the file automation_direct_stock-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: automation_direct_stock-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f21bc4bbea408f9f1d7c358df6dcb8129cf4d215911e8ceb6941175e13da026d |
|
MD5 | 40de4dc8e0ce6d4f0c9853289fbc2504 |
|
BLAKE2b-256 | 393d9a10e005b06843ebb7adec70191ce45f2f2c529560c11bbe83b2f4601ddc |