# 🗺️ image_sitemap
<div align="center">
<a href="https://vyjava.xyz/dashboard/image/e38067e4-7204-4e80-ad2b-d318b07320ac">
<img alt="Logo_348x300" src="https://s.vyjava.xyz/files/2025/08-August/07/e38067e4/Logo_348x300_.png">
</a>
</div>
<hr>
[](https://badge.fury.io/py/image-sitemap)
[](https://badge.fury.io/py/image-sitemap)
[](https://pepy.tech/project/image-sitemap)
Image & Website Sitemap Generator - SEO Tool for Better Visibility
Sitemap Images is a Python tool that generates [a specialized XML sitemap file](./example_sitemap_images.xml),
allowing you to submit image URLs to search engines like **Google**, **Bing**, and **Yahoo**.
This tool helps improve image search visibility, driving more traffic to your website and increasing engagement.
To ensure search engines can discover your sitemap, simply add the following line to your **robots.txt** file:
```txt
Sitemap: https://example.com/sitemap-images.xml
```
By including image links in your sitemap and referencing it in your robots.txt file, you can enhance your website's SEO and make it easier for users to find your content.
Google image sitemaps standard description - [Click](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps).
## 📦 Features
- Supports both website and image sitemap generation
- Easy integration with existing Python projects
- Helps improve visibility in search engine results
- Boosts image search performance
## ✍️ Examples
1. Set website page and crawling depth, run script
```python
import asyncio
from image_sitemap import Sitemap
from image_sitemap.instruments.config import Config
images_config = Config(
max_depth=3,
accept_subdomains=True,
is_query_enabled=False,
file_name="sitemap_images.xml",
header={
"User-Agent": "ImageSitemap Crawler",
"Accept": "text/html",
},
)
sitemap_config = Config(
max_depth=3,
accept_subdomains=True,
is_query_enabled=False,
file_name="sitemap.xml",
header={
"User-Agent": "ImageSitemap Crawler",
"Accept": "text/html",
},
)
asyncio.run(Sitemap(config=images_config).run_images_sitemap(url="https://rucaptcha.com/"))
asyncio.run(Sitemap(config=sitemap_config).run_sitemap(url="https://rucaptcha.com/"))
```
2. Get sitemap images data in file
```xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://rucaptcha.com/proxy/residential-proxies</loc>
<image:image>
<image:loc>https://rucaptcha.com/dist/web/assets/rotating-residential-proxies-NEVfEVLW.svg</image:loc>
</image:image>
</url>
</urlset>
```
Or just sitemap file
```xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://rucaptcha.com/</loc>
</url>
<url>
<loc>https://rucaptcha.com/h</loc>
</url>
</urlset>
```
You can check examples file here - [Click](./example_sitemap_images.xml).
Raw data
{
"_id": null,
"home_page": null,
"name": "image-sitemap",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "sitemap generator, image sitemap, XML sitemap, SEO optimization, Python SEO tools, website indexing, search engine visibility, image indexing, web crawler",
"author": null,
"author_email": "AndreiDrang <python-captcha@pm.me>",
"download_url": "https://files.pythonhosted.org/packages/1f/e8/0769e2e9c6efdaf9d7189a16ad3144d9edfc2ac4b1f2e877e0caa691ddd6/image_sitemap-1.0.4.tar.gz",
"platform": null,
"description": "# \ud83d\uddfa\ufe0f image_sitemap\n\n<div align=\"center\">\n <a href=\"https://vyjava.xyz/dashboard/image/e38067e4-7204-4e80-ad2b-d318b07320ac\">\n <img alt=\"Logo_348x300\" src=\"https://s.vyjava.xyz/files/2025/08-August/07/e38067e4/Logo_348x300_.png\">\n </a>\n</div>\n\n<hr>\n\n[](https://badge.fury.io/py/image-sitemap)\n[](https://badge.fury.io/py/image-sitemap)\n[](https://pepy.tech/project/image-sitemap)\n\nImage & Website Sitemap Generator - SEO Tool for Better Visibility\n\nSitemap Images is a Python tool that generates [a specialized XML sitemap file](./example_sitemap_images.xml),\nallowing you to submit image URLs to search engines like **Google**, **Bing**, and **Yahoo**.\nThis tool helps improve image search visibility, driving more traffic to your website and increasing engagement.\nTo ensure search engines can discover your sitemap, simply add the following line to your **robots.txt** file:\n```txt\nSitemap: https://example.com/sitemap-images.xml\n```\nBy including image links in your sitemap and referencing it in your robots.txt file, you can enhance your website's SEO and make it easier for users to find your content.\n\nGoogle image sitemaps standard description - [Click](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps).\n\n## \ud83d\udce6 Features\n\n- Supports both website and image sitemap generation \n- Easy integration with existing Python projects \n- Helps improve visibility in search engine results \n- Boosts image search performance\n\n## \u270d\ufe0f Examples\n\n1. Set website page and crawling depth, run script\n ```python\n import asyncio\n \n from image_sitemap import Sitemap\n from image_sitemap.instruments.config import Config\n \n images_config = Config(\n max_depth=3,\n accept_subdomains=True,\n is_query_enabled=False,\n file_name=\"sitemap_images.xml\",\n header={\n \"User-Agent\": \"ImageSitemap Crawler\",\n \"Accept\": \"text/html\",\n },\n )\n sitemap_config = Config(\n max_depth=3,\n accept_subdomains=True,\n is_query_enabled=False,\n file_name=\"sitemap.xml\",\n header={\n \"User-Agent\": \"ImageSitemap Crawler\",\n \"Accept\": \"text/html\",\n },\n )\n \n asyncio.run(Sitemap(config=images_config).run_images_sitemap(url=\"https://rucaptcha.com/\"))\n asyncio.run(Sitemap(config=sitemap_config).run_sitemap(url=\"https://rucaptcha.com/\"))\n ```\n2. Get sitemap images data in file \n ```xml\n <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <urlset\n xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\">\n <url>\n <loc>https://rucaptcha.com/proxy/residential-proxies</loc>\n <image:image>\n <image:loc>https://rucaptcha.com/dist/web/assets/rotating-residential-proxies-NEVfEVLW.svg</image:loc>\n </image:image>\n </url>\n </urlset>\n ```\n Or just sitemap file\n ```xml\n <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <urlset\n xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url>\n <loc>https://rucaptcha.com/</loc>\n </url>\n <url>\n <loc>https://rucaptcha.com/h</loc>\n </url>\n </urlset>\n ```\n\nYou can check examples file here - [Click](./example_sitemap_images.xml).\n",
"bugtrack_url": null,
"license": null,
"summary": "Library to generate XML sitemaps for websites and images. Boost SEO by indexing image URLs for better visibility on search engines.",
"version": "1.0.4",
"project_urls": {
"Changelog": "https://github.com/AndreiDrang/image_sitemap/releases",
"Documentation": "https://github.com/AndreiDrang/image_sitemap",
"Homepage": "https://github.com/AndreiDrang/image_sitemap",
"Issues": "https://github.com/AndreiDrang/image_sitemap/issues",
"Repository": "https://github.com/AndreiDrang/image_sitemap"
},
"split_keywords": [
"sitemap generator",
" image sitemap",
" xml sitemap",
" seo optimization",
" python seo tools",
" website indexing",
" search engine visibility",
" image indexing",
" web crawler"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "79c7ce19fcdbef404530e092d02c3aa7f64735d4e77ce1b1f698c7f016e227c7",
"md5": "ae4c63d821635efd6cc1a6633f44317b",
"sha256": "66375ad978540e7be3413b7ea25bcfafaa8a9d4e04d67a7bf9db35837167c137"
},
"downloads": -1,
"filename": "image_sitemap-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ae4c63d821635efd6cc1a6633f44317b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 15568,
"upload_time": "2025-08-08T21:29:54",
"upload_time_iso_8601": "2025-08-08T21:29:54.849000Z",
"url": "https://files.pythonhosted.org/packages/79/c7/ce19fcdbef404530e092d02c3aa7f64735d4e77ce1b1f698c7f016e227c7/image_sitemap-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1fe80769e2e9c6efdaf9d7189a16ad3144d9edfc2ac4b1f2e877e0caa691ddd6",
"md5": "c39881081bfb9eac16212da97c51cd86",
"sha256": "1fefa84355507bfbc27a58f4915f41c7b1ed731c83d34ed51ee076eecb4de32a"
},
"downloads": -1,
"filename": "image_sitemap-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "c39881081bfb9eac16212da97c51cd86",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 14999,
"upload_time": "2025-08-08T21:29:56",
"upload_time_iso_8601": "2025-08-08T21:29:56.931940Z",
"url": "https://files.pythonhosted.org/packages/1f/e8/0769e2e9c6efdaf9d7189a16ad3144d9edfc2ac4b1f2e877e0caa691ddd6/image_sitemap-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-08 21:29:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AndreiDrang",
"github_project": "image_sitemap",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "aiohttp",
"specs": [
[
"==",
"3.12.*"
]
]
},
{
"name": "beautifulsoup4",
"specs": [
[
"==",
"4.13.*"
]
]
}
],
"lcname": "image-sitemap"
}