# 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!
Release files for papajohnsapi-mehtaarn000 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| papajohnsapi-mehtaarn000-0.2.2.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| papajohnsapi_mehtaarn000-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / papajohnsapi-mehtaarn000-0.2.2.tar.gz
| Download URL | papajohnsapi-mehtaarn000-0.2.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a46b305e0711059cb5aafb8d7595dfda8e77e0864d3eb88c71ed7a509bd1537c
|
|
BLAKE2b-256 checksum How to use checksums |
8318f8789cb62e06ebb73520258f63db1ad3d7f5224bda7264506a456774143d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / papajohnsapi_mehtaarn000-0.2.2-py3-none-any.whl
| Download URL | papajohnsapi_mehtaarn000-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81eddadde92e54091f90e5ac35e302857a13e6175814b499b884b9301a13053f
|
|
BLAKE2b-256 checksum How to use checksums |
471a601fcef31a5ea6a701dd1766e2a0146bf42c1fb1c6ad2e9de50d898b0c11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|