This script uses Puppeteer to interact with the sora.com website. It automates the process of entering prompts and generating images. The script requires Chromium to run.
- Chromium installed on your system.
- You must be logged into the sora.com website.
- Navigate to the My Media page and select a generated image (URL such as: https://sora.chatgpt.com/t/task_01jsw4zeykft8b36de9d73vfag).
Run the following command to start Chromium with remote debugging enabled:
chromium-browser \
--remote-debugging-port=9222 \
--user-data-dir=/tmp/rpi-puppeteer-profile \
--no-first-run \
--no-default-browser-check \
--disable-features=TranslateUI \
--no-sandbox \
--disable-dev-shm-usage \
--disable-gpu
Ensure Node.js is installed, then run:
yarn install
- Start Chromium with the command above.
- Log in to sora.com and navigate to the My Media page.
- Open a generated image.
- Run the script with:
yarn start
The script will begin interacting with the page, entering prompts, and generating images automatically.
- Prompts and variables used by the script are configured in the
playbook.json
file. - Ensure the
playbook.json
file is correctly set up before running the script. - Logs of operations are saved in the
logs.log
file.