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
Clone this repository
Open with VS Code
Create a virtual environment
Ctrl + Shift + P
Type "Python: Create New Virtual Environment"
Create a .env file in the root directory
Add the following environment variables to the .env file
USER=your_usernamePASS=your_password
Install the required packages
pip install -r requirements.txt
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)