Description: Bing Image Creator Tool is a tool that allows you to run Bing Image Creator (I'll call it BIC) from your terminal. Due to Windows' limitations I wasn't able to create a Virtual Display such as Xvfb or Xvnc provided by PyVirtualDesktop. That's why in this project I use pyvda to create virtual desktops in Windows 10/11.
Why not use the --headless mode?: I've tried to use the headless mode but Bing refused to run any scripts while the browser is headless. This error is consistent in both Chrome and Edge. Firefox requires further testing.
Other things to include:
- Technology stack: Two main python libraries has been used. Selenium for webscrapping and pyvda for managing desktops and windows.
- Status: I was trying to use BIC with AutoGPT so I had to create a basic template for my needs. This is a very early version to give a designated version number.
video-0.mp4
After installing the required libraries, you can run the tool by using the run.bat file. You can also run the tool by running the following command in your terminal:
python src/main.py
I highly recommend you to use Microsoft Edge because it will automatically login to your Microsoft account thus removing the need to login besides it's the only browser that I've tested and it works perfectly.
To install the program run the following script
install.bat
Alternatively you can run following commands from the root of your project's directory:
git clone https://github.com/beratcmn/bing-image-creator-cli.git
cd bing-image-creator-cli
pip install requirements.txt