Skip to main content

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. Download Python
  2. Installing Bought
  3. Download browser drivers

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": Edit the system environment variables - Control Panel

Select the above item in the Control Panel, under the advanced tab, find Environment Variables... in the bottom right corner.

System Properties - Advanced - Environment Variables...

Under User variables, select Path, Edit..., New, and provide the path to the driver you installed.

Environment variables

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 repository with descriptive comments about their usage.

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, fork this repository, develop your changes in a branch seperate from main, and submit a pull request.

This project uses poetry which allows for build isolation in a virtual environment. After downloading the repository, run poetry shell and poetry install from the root of the repository to install the project. You may need to uninstall the PyPI version of bought with pip uninstall bought to use your own version of bought.

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

bought-0.1.3.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

bought-0.1.3-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file bought-0.1.3.tar.gz.

File metadata

  • Download URL: bought-0.1.3.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for bought-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2105b9902c575f6ea557c3704a9194f7fa08a2c8de49413de5b0ff7de645c4d6
MD5 37572775ca72d933c7ed91f8c6b82898
BLAKE2b-256 9264d905aad2b1716f96657b8d2215d5d93a99c43aeddf65a1d3536939b88645

See more details on using hashes here.

File details

Details for the file bought-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: bought-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for bought-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 102c8001d1f16f2377483c45d505e28a93d2e5441313bc9fd4e9ff70a0227322
MD5 ecbbd6cdc7efa54ab547e3a7c11bbdff
BLAKE2b-256 1cbe6f3eb50f2143cee8c74ef826ea7e010b1207bbd84051f04b6518b49f0f0d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page