A bot that purchases items, rendering them bought.
Project description
Bought
A bot which can purchase items online, rendering them bought.
This bot is intended to combat scalping practices.
Installation
Installing this bot is a multi-step process involving a Command Line Interface (CLI) such as Windows PowerShell, Bash, Zsh, and Fish:
1. Downloading Python
Open up your respective CLI and type:
python --version
This will display the python version on your system. Ensure you are running Python 3.7, or higher. If you are running an earlier version of Python, please update your Python. If a Python version isn't installed on your computer and you received an error running this command, download Python from Python.org, or a Python distribution like Anaconda.
2. Installing Bought
Python comes with its own package manager called pip
which can install
packages/libraries. Upgrade the pip package using pip:
python -m pip install --upgrade pip
Now run the following to download this project package to your system's Python:
pip install bought
3. Install Webdriver
Vist the selenium documentation page and download the driver for your preferred browser: Firefox | Chrome
This driver will need to be added to your PATH environment variable. You can do this on your specific OS as follows:
Windows Path
Press the Windows key, and type "environment":
Select the above item in the Control Panel, under the advanced tab, find
Environment Variables...
in the bottom right corner.
Under User variables, select Path
, Edit...
, New
, and provide the path to the driver you installed.
Linux/MacOS
In Linux and MacOS, your corresponding shell will have its own configuration
file (typically in your home folder). For bash and zsh, this is ~/.bashrc
and ~/.zshrc
, respectively.
Open the file and add the following line to the bottom:
export PATH=/path/to/driver:$PATH
Save and exit. You can restart the shell, or execute the source command for your corresponding configuration file:
source ~/.bashrc
source ~/.zshrc
etc...
Usage
Bought uses Python's console scripts entry point. This allows you to use
the bought
command from your CLI:
bought --help
This will display a list of subcommands and flags that can be used to configure bought and run it from the command line; however, it is highly recommended to use Bought with a config file:
bought -c config.ini
The config.ini file can be specified in any directory. A sample one is provided in this directory.
Contributing
First and foremost, create an issue on the github repository. This is where issues can be made known publicly -- be sure to check for duplicates prior to submitting an issue.
If you want to address an issue yourself or submit a Pull Request for any
other reason, fork this repository and develop your changes in a branch
seperate from main
.
Project details
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 bought-0.1.0.tar.gz
.
File metadata
- Download URL: bought-0.1.0.tar.gz
- Upload date:
- Size: 266.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f7bfe84223d09747fa889d100c9c3af78684bc023a640b97da92fae5e1635e |
|
MD5 | d370870b0ca81223b77b76c93aee3e98 |
|
BLAKE2b-256 | 207f721e7637c5d290424a3536e82970c51130c721ea9bf173a5da48aef3231a |
File details
Details for the file bought-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: bought-0.1.0-py3-none-any.whl
- Upload date:
- Size: 265.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e343f5122f51ef6e2862c78ea631174dd4cc34e9f079c68f7f6456d61c0bfdd |
|
MD5 | aa730e0a0182a7fa1c92e0185388603c |
|
BLAKE2b-256 | 179bb6a613dfddf9452096a9de4e5ee1d01521d74a05a26882d0f84c9fdbb6f4 |