A simple API for generating Sneakers AIO Quick Task URLs.
Project description
Sneakers AIO Quick Task Generator
A simple API for generating Sneakers AIO Quick Task URLs.
Installation
Using pip:
$ pip install sneakers-quick-task
In Python:
from sneakersaio import QuickTask
Usage
# Create keywords task: sneakersaio://quick-task?sites=https%3A%2F%2Fkith.com,https%3A%2F%2Fwww.deadstock.ca&keywords=yeezy,350,-kid,-infant&color_keywords=&size=any%20size&mode=queue
quickTaskUrl = QuickTask.createKeywordsTask(["https://kith.com", "https://www.deadstock.ca"], ["yeezy", "350", "-kid", "-infant"], [], "any size", "queue");
# Create product url task: sneakersaio://quick-task?sites=https%3A%2F%2Fkith.com&color_keywords=white,red&product_url=https%3A%2F%2Fkith.com%2Fcollections%2Fkith-monday-program%2Fproducts%2Fkh2636-101&size=Medium&mode=safe
quickTaskUrl = QuickTask.createProductUrlTask("https://kith.com", "https://kith.com/collections/kith-monday-program/products/kh2636-101", ["white", "red"], "Medium");
# Create variant task: sneakersaio://quick-task?sites=https%3A%2F%2Fkith.com&variant=39246354940032&mode=safe
quickTaskUrl = QuickTask.createVariantTask("https://kith.com", "39246354940032");
# Create size id task: sneakersaio://quick-task?sites=https%3A%2F%2Fwww.footlocker.ca&size_id=22661425&mode=safe
quickTaskUrl = QuickTask.createSizeIDTask("https://www.footlocker.ca", "22661425");
# Create product number task: sneakersaio://quick-task?sites=https%3A%2F%2Fwww.footlocker.ca&color_keywords=white,red,-yellow&product_number=41047318&size=User%20Shoe&mode=safe
quickTaskUrl = QuickTask.createProductNumberTask("https://www.footlocker.ca", "41047318", ["white", "red", "-yellow"], "User Shoe")
Documentation
Static methods
createKeywordsTask(sites: list, keywords: list, colorKeywords: list = [], size: str = 'User Shoe', mode: str = 'safe') -> str
: Creates a Sneakers AIO Quick Task URL using the keywords search type.
Returns: str
- Sneakers AIO Quick Task URL
Param | Type | Default | Description |
---|---|---|---|
sites | [str] |
Array of website URLs to create tasks for. These should be for the base url of the site (no path or query). All sites must be of the same type (ie. all Shopify or all Footsites). | |
keywords | [str] |
Array of keywords to search for. Negative keywords begin with - | |
colorKeywords | [str] |
Array of color keywords to search for. Negative keywords begin with - | |
size | str |
User Shoe |
The size of the product. Special size types include: "Any Size" , "One Size" , "User Shoe" & "User Clothing" . |
mode | str |
safe |
The bot mode. Shopify modes include "Safe" , "Quick" , "Queue" , & "Input" . Footsites modes include "Safe" & "Release" . There may be more modes. |
createProductUrlTask(site: str, productUrl: str, colorKeywords: list = [], size: str = 'User Shoe', mode: str = 'safe') -> str
: Creates a Sneakers AIO Quick Task URL using the product URL search type.
Returns: str
- Sneakers AIO Quick Task URL
Param | Type | Default | Description |
---|---|---|---|
site | str |
Website URL to create the task for. This should be for the base url of the site (no path or query). | |
productUrl | str |
Full url of the product to purchase (w/ path). | |
colorKeywords | [str] |
Vector of color keywords to search for. Negative keywords begin with - | |
size | str |
User Shoe |
The size of the product. Special size types include: "Any Size" , "One Size" , "User Shoe" & "User Clothing" . |
mode | str |
safe |
The bot mode. Shopify modes include "Safe" , "Quick" , "Queue" , & "Input" . Footsites modes include "Safe" & "Release" . There may be more modes. |
createProductNumberTask(site: str, productNumber: str, colorKeywords: list = [], size: str = 'User Shoe', mode: str = 'safe') -> str
: Creates a Sneakers AIO Quick Task URL using the product URL search type.
Returns: str
- Sneakers AIO Quick Task URL
Param | Type | Default | Description |
---|---|---|---|
site | str |
Website URL (Footsites only) to create the task for. This should be for the base url of the site (no path or query). | |
productNumber | str |
Product Number of product to find. Can be found in the product url. Ie. the product number for https://www.footlocker.ca/en/product/jordan-retro-3-mens/48818677.html is 48818677. | |
colorKeywords | [str] |
Vector of color keywords to search for. Negative keywords begin with - | |
size | str |
User Shoe |
The size of the product. Special size types include: "Any Size" , "One Size" , "User Shoe" & "User Clothing" . |
mode | String |
safe |
The bot mode. Footsites modes include "Safe" & "Release" . There may be more modes. |
createSizeIDTask(site: str, sizeID: str, mode: str = 'safe') -> str
: Creates a Sneakers AIO Quick Task URL using the product URL search type.
Returns: str
- Sneakers AIO Quick Task URL
Param | Type | Default | Description |
---|---|---|---|
site | str |
Website URL (Footsites only) to create the task for. This should be for the base url of the site (no path or query). | |
sizeID | str |
Size ID of the product to purchase (ID used for carting the product). | |
mode | str |
safe |
The bot mode. Footsites modes include "Safe" & "Release" . There may be more modes. |
createVariantTask(site: str, variant: str, mode: str = 'safe') -> str
: Creates a Sneakers AIO Quick Task URL using the product URL search type.
Returns: str
- Sneakers AIO Quick Task URL
Param | Type | Default | Description |
---|---|---|---|
site | str |
Website URL (Shopify only) to create the task for. This should be for the base url of the site (no path or query). | |
variant | str |
Variant of the product to purchase. | |
mode | str |
safe |
The bot mode. Shopify modes include "Safe" , "Quick" , "Queue" , & "Input" . There may be more modes. |
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 sneakers-quick-task-1.0.4.tar.gz
.
File metadata
- Download URL: sneakers-quick-task-1.0.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f36a02ea4d12c087c768e9df714f21410bc81f86b91f8c94267a14c77b21ad8 |
|
MD5 | 74f7da7d6b853d71f961f845cf8b4481 |
|
BLAKE2b-256 | b6d11359f40abaa99a0fb1642fe73b8dab429972aaf2694d564acad7a4366c88 |
File details
Details for the file sneakers_quick_task-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: sneakers_quick_task-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84676d04388b287153b58d48f93c7e259cb10927cd0a3fd481fb4bfb1ebdc3b4 |
|
MD5 | cc828ff410d9eaee084beaf5ed660102 |
|
BLAKE2b-256 | 5737c2e3402dd0c36c41f92c4e8e9e96d47e37c41f7f283e33c82cf075f5a55c |