williamspiro / hubXml

A tool to turn any blog into a HubSpot importable XML file
MIT License
14 stars 5 forks source link

Sitemap finder #39

Closed williamspiro closed 6 years ago

williamspiro commented 6 years ago

Given a blog has a root url with extension, you can simply let the program know the blog root url and it will find posts based off that root url using the sitemap of the site.

Simply set the BLOG_ROOT_URL variable if you want to use this option. Would work with example: static final String BLOG_ROOT_URL = https://www.kungfupanda.com/blog This means you do not need to set the POSTS array manually and it will find posts like: https://www.kungfupanda.com/blog/dragon-warrior https://www.kungfupanda.com/blog/valley-of-peace https://www.kungfupanda.com/blog/jade-palace

If the posts do not live as an extension of the root url, this will not work, so just leave BLOG_ROOT_URL as an empty string