# BingImageCreator
High quality image generation by Microsoft. Reverse engineered API.
`pip3 install --upgrade BingImageCreator`
```
$ python3 -m BingImageCreator -h
usage: BingImageCreator.py [-h] -U U --prompt PROMPT [--output-dir OUTPUT_DIR]
options:
-h, --help show this help message and exit
-U U Auth cookie from browser
--prompt PROMPT Prompt to generate images for
--asyncio Use async to sync png
--output-dir OUTPUT_DIR
Output directory
```
[Developer Documentation](https://github.com/acheong08/BingImageCreator/blob/main/DOCUMENTATION.md)
## Getting authentication
### Chromium based browsers (Edge, Opera, Vivaldi, Brave)
- Go to https://bing.com/.
- F12 to open console
- In the JavaScript console, type `cookieStore.get("_U").then(result => console.log(result.value))` and press enter
- Copy the output. This is used in `--U` or `auth_cookie`.
### Firefox
- Go to https://bing.com/.
- F12 to open developer tools
- navigate to the storage tab
- expand the cookies tab
- click on the `https://bing.com` cookie
- copy the value from the `_U`
Raw data
{
"_id": null,
"home_page": "https://github.com/acheong08/BingImageCreator",
"name": "BingImageCreator",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Antonio Cheong",
"author_email": "acheong@student.dalat.org",
"download_url": "https://files.pythonhosted.org/packages/57/13/d3dee1846b8844e83fcb522ab3c7c335052f173ad3fb8e3970cfa11e9abd/BingImageCreator-0.5.0.tar.gz",
"platform": null,
"description": "# BingImageCreator\nHigh quality image generation by Microsoft. Reverse engineered API.\n\n`pip3 install --upgrade BingImageCreator`\n\n```\n $ python3 -m BingImageCreator -h\nusage: BingImageCreator.py [-h] -U U --prompt PROMPT [--output-dir OUTPUT_DIR]\n\noptions:\n -h, --help show this help message and exit\n -U U Auth cookie from browser\n --prompt PROMPT Prompt to generate images for\n --asyncio Use async to sync png\n --output-dir OUTPUT_DIR\n Output directory\n```\n\n[Developer Documentation](https://github.com/acheong08/BingImageCreator/blob/main/DOCUMENTATION.md)\n\n\n## Getting authentication\n### Chromium based browsers (Edge, Opera, Vivaldi, Brave)\n- Go to https://bing.com/.\n- F12 to open console\n- In the JavaScript console, type `cookieStore.get(\"_U\").then(result => console.log(result.value))` and press enter\n- Copy the output. This is used in `--U` or `auth_cookie`.\n\n### Firefox\n- Go to https://bing.com/.\n- F12 to open developer tools\n- navigate to the storage tab\n- expand the cookies tab\n- click on the `https://bing.com` cookie\n- copy the value from the `_U`\n",
"bugtrack_url": null,
"license": "GNU General Public License v2.0",
"summary": "High quality image generation by Microsoft. Reverse engineered API.",
"version": "0.5.0",
"project_urls": {
"Bug Report": "https://github.com/acheong08/BingImageCreator/issues/new",
"Homepage": "https://github.com/acheong08/BingImageCreator"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "915e04629695f684182eda5d3d2dfada781f05341a48acf6ec93b46815db1a9b",
"md5": "5fb999747c7ee2a9289709786ebebfc4",
"sha256": "9822e07ec32f79a88d4a0db59e85dfed46477cfe706d534c2bd813f1c92120e0"
},
"downloads": -1,
"filename": "BingImageCreator-0.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5fb999747c7ee2a9289709786ebebfc4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6840,
"upload_time": "2023-08-10T14:54:24",
"upload_time_iso_8601": "2023-08-10T14:54:24.400845Z",
"url": "https://files.pythonhosted.org/packages/91/5e/04629695f684182eda5d3d2dfada781f05341a48acf6ec93b46815db1a9b/BingImageCreator-0.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5713d3dee1846b8844e83fcb522ab3c7c335052f173ad3fb8e3970cfa11e9abd",
"md5": "e8a43270b6b3e8af5c35a3b67da8d566",
"sha256": "e15798b7c0394145b334d0b3bef4aad187d5e7e0c3f7b6d949e413fe11b5ea47"
},
"downloads": -1,
"filename": "BingImageCreator-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "e8a43270b6b3e8af5c35a3b67da8d566",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6847,
"upload_time": "2023-08-10T14:54:25",
"upload_time_iso_8601": "2023-08-10T14:54:25.316432Z",
"url": "https://files.pythonhosted.org/packages/57/13/d3dee1846b8844e83fcb522ab3c7c335052f173ad3fb8e3970cfa11e9abd/BingImageCreator-0.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-10 14:54:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "acheong08",
"github_project": "BingImageCreator",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "bingimagecreator"
}