nbourre / chatgpt_invoice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetch latest ChatGPT invoice script

Instructions easy running

Prerequisites

  • VS Code with extension "Python Virtual Environment Creator" or whatever you like
  • Selenium WebDriver for Firefox
  • Be sure to add the path to the geckodriver to the PATH environment variable

Steps

  1. Clone this repository
  2. Open with VS Code
  3. Create a virtual environment
    1. Ctrl + Shift + P
    2. Type "Python: Create New Virtual Environment"
  4. Create a .env file in the root directory
  5. Add the following environment variables to the .env file
    USER=your_username
    PASS=your_password
  6. Install the required packages
    pip install -r requirements.txt
  7. Run the script
    python fetch_gpt_receipt.py

Usage

usage: fetch_gpt_receipt.py [-h] [--output_dir OUTPUT_DIR] [--filename FILENAME] [--username USERNAME] [--password PASSWORD] [--headless]

Download ChatGPT receipts.

optional arguments:
  -h, --help            show this help message and exit
  --output_dir OUTPUT_DIR
                        Directory to save the PDF files (default: saved_pdfs)
  --filename FILENAME   Filename for the PDF receipt (default: None)
  --username USERNAME   Username for ChatGPT login (default: None)
  --password PASSWORD   Password for ChatGPT login (default: None)
  --headless            Run browser in headless mode (default: False)

About


Languages

Language:Python 100.0%