bdt_sitemap-0.9
توضیحات
Sitemap.xml generator for a local copy of a website
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | bdt_sitemap-0.9 |
| نام | bdt_sitemap |
| نسخه کتابخانه | 0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Tadeuszow |
| ایمیل نویسنده | dtadeuszow@gmail.com |
| آدرس صفحه اصلی | https://github.com/Xenmen/bdt_sitemap |
| آدرس اینترنتی | https://pypi.org/project/bdt_sitemap/ |
| مجوز | AGPL3+ |
Can be used as a library, or run standalone in the command line.
Supports two arguments:
Domain: In url form, the domain name for which you're generating sitemaps. Subdomains are also supported. Each domain and subdomain must be run separately. 'domain.com' and 'subdomain.domain.ru' are both valid.
LocalPath: Path to the website directory as stored locally. Platform agnostic.
WARNING: If the LocalPath argument is not passed, current directory will be assumed! You will be asked if this was a mistake, and given a chance to exit, but that's all! You will end up with sitemap.xmls all over the place if you're not careful!
Usage:
bdt_sitemap mysite.com ~/sites/sitefolder
bdt_sitemap tadeuszow.com /home/xenmen/sites/Tadeuszow-site/main
bdt_sitemap daniel.tadeuszow.com C:\Users\Xenmen\sites\Tadeuszow-site\daniel
Usage as a library in WIP, and presently creates a global variable called emod_time, and defines three functions:
init_emod_time()
compare_emod_time(newtime)
create_sitemap(domain, site_dir, ignorelist=[])
It is recommended to use bdt_sitemap standalone, and not as a library, until version 1.0
نحوه نصب
نصب پکیج whl bdt_sitemap-0.9:
pip install bdt_sitemap-0.9.whl
نصب پکیج tar.gz bdt_sitemap-0.9:
pip install bdt_sitemap-0.9.tar.gz