Skip to main content

A python module that will allow users to use selenium to order pizza from Papa Johns.

Project description

# papajohnsapi A Python module that will allow users to use selenium to order pizza from Papa Johns.

## Disclaimer * This only works in the United States.

  • All responsibilites to use this appropriately are on the user. (It’s not my fault if you put this in a while True loop and go 3254853478327 trillion dollars in debt.)

## Requirements pip install selenium If you are using the Chrome Browser, download the compatible version of the chromedriver [here](https://chromedriver.chromium.org/). If you are using the Firefox Browser, download the compatible version of the geckodriver [here](https://github.com/mozilla/geckodriver/releases). On OSX make sure to move either of these drivers to /usr/local/bin with either: mv geckodriver /usr/local/bin or mv chromedriver /usr/local/bin

## Installation pip install papajohnsapi-mehtaarn000

## Usage First, import the module after downloading with: import papajohnsapi as pizza

Check the menu with: pizza.menu(item) This item can be: ‘Pizza’, ‘Drinks’, ‘Sides’, or ‘Desserts’ (Currently you can only order pizza) Replace Arguments as needed

Specify your choice of browser and the choice of going headless (You won’t see a browser window) with: pizza.browser(‘Firefox’, headless=False) Replace arguments as needed.

Specify your address with: pizza.address(house number, street, city, state, zipcode) Note: State must be in 2 letter form. For example, New York would be NY. Replace arguments as needed.

Specify who you want ordering with: pizza.user(first name, last name, phone number, email) Replace arguments as needed.

Then, place your order with: pizza.order([items])

Replace items with the order codes provided by: pizza.menu(item)

Finally, kick back as you get fresh pizza delivered to your door!

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

papajohnsapi-mehtaarn000-0.2.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

papajohnsapi_mehtaarn000-0.2.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file papajohnsapi-mehtaarn000-0.2.2.tar.gz.

File metadata

  • Download URL: papajohnsapi-mehtaarn000-0.2.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for papajohnsapi-mehtaarn000-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a46b305e0711059cb5aafb8d7595dfda8e77e0864d3eb88c71ed7a509bd1537c
MD5 d1ec4e8c7eada5a4345dfb03e969d224
BLAKE2b-256 8318f8789cb62e06ebb73520258f63db1ad3d7f5224bda7264506a456774143d

See more details on using hashes here.

File details

Details for the file papajohnsapi_mehtaarn000-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: papajohnsapi_mehtaarn000-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for papajohnsapi_mehtaarn000-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 81eddadde92e54091f90e5ac35e302857a13e6175814b499b884b9301a13053f
MD5 628e0b232bff876e31ecd2a0748824f8
BLAKE2b-256 471a601fcef31a5ea6a701dd1766e2a0146bf42c1fb1c6ad2e9de50d898b0c11

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