Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sitemap #68

Open
ghost opened this issue Jun 20, 2015 · 2 comments
Open

sitemap #68

ghost opened this issue Jun 20, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2015

I created function for generation sitemaps.
Just put it in the end of file and call inside main func

def load_site_map(static_path):
    arguments = docopt(__doc__, version='0.1.3')
    sitemaps = ["sitemap.xml","sitemap-posts.xml","sitemap-authors.xml","sitemap-tags.xml"]
    for sitemap in sitemaps:
        path = os.path.join(static_path, sitemap)
        if os.path.exists(path):
            os.remove(path)
        else:
            print("File not found %s." % path)

        command = ("wget "
                   "--directory-prefix {1} "  # download contents to static/ folder
                   "{0}/{2}").format(arguments['--domain'], static_path,sitemap)
        os.system(command)
@bheru27
Copy link

bheru27 commented Dec 14, 2015

@spirogov Fork the repo and make a pull request.

@SergeyPirogov
Copy link

@bheru27 ok, but who will merge it, as i see this repo is dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants