sudo apt-get update
sudo apt-get upgradesudo apt-get install python-virtualenv
sudo virtualenv /opt/myenv| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
| <?php | |
| class Disqus_HTML { | |
| /** | |
| * Returns the Disqus comment form HTML and JS with the optional | |
| * config values set. API 1.1 values can include: | |
| * | |
| * disqus_developer | |
| * disqus_url | |
| * disqus_identifier |