<commit_before># Google Sites Import/Export Tool

This is an import/export tool for [Google Sites](http://sites.google.com/).  Using [HTML Microformats](http://microformats.org/) it generates an XHTML version of Sites content suitable for offline browsing and simple HTTP hosting, which is also able to be losslessly imported back into sites.

![http://google-sites-liberation.googlecode.com/files/gui.png](http://google-sites-liberation.googlecode.com/files/gui.png)

## User's Guide

The Sites Liberation import/export tool uses the Sites GData API to allow users to export an entire Google Site as static html pages to a directory on their hard drive. The html is embedded with meta-data based on the hAtom microformats specification, to allow the re-import of html back into Google Sites. Applications of the tool include backing up a Google Site, switching to or from a different service, and editing a Site offline.

### Simple Execution

Download the version [1.0.5](https://sih4sing5hong5.github.io/google-sites-liberation/jar/google-sites-liberation-1.0.5-jar-with-dependencies.jar) now! The tool has been packaged as an executable jar.  If [Java](http://java.sun.com/) is installed, just **double-click on it**.

You can run it in command line, too.
```bash
java -jar google-sites-liberation-1.0.5-jar-with-dependencies.jar
```

### Advanced Execution

The tool is written in Java and the source code is currently hosted at code.google.com. Upon building the tool, there are three main classes. The class com.google.sites.liberation.export.Main allows the execution of a Sites export from the command line. The class com.google.sites.liberation.imprt.Main is the equivalent for a Sites import (note that the package name is "imprt," due to the Java keyword collision). The class com.google.sites.liberation.util.GuiMain provides a graphical user interface for launching both imports and exports. In all cases, the import/export takes the following arguments:

| Name | Flag | Usage |
|:-----|:-----|:------|
| Host | `-h` | If not sites.google.com, specifies the Site's host (optional).  Used for debugging. |
| Domian | `-d` | If the site is a Google Apps site, specifies the domain, e.g. dataliberation.org (optional). |
| Webspace | `-w` | Specifies the webspace of the Site, e.g. "dataliberation" for a site located at `http://sites.google.com/a/domain/dataliberation` |
| Username | `-u` | Specifies the user name used to access the Site. |<commit_msg>add the execution on the top<commit_after># Google Sites Import/Export Tool

This is an import/export tool for [Google Sites](http://sites.google.com/).  Using [HTML Microformats](http://microformats.org/) it generates an XHTML version of Sites content suitable for offline browsing and simple HTTP hosting, which is also able to be losslessly imported back into sites.

Download the version [1.0.5](https://sih4sing5hong5.github.io/google-sites-liberation/jar/google-sites-liberation-1.0.5-jar-with-dependencies.jar) and execute it now!

![http://google-sites-liberation.googlecode.com/files/gui.png](http://google-sites-liberation.googlecode.com/files/gui.png)

## User's Guide

The Sites Liberation import/export tool uses the Sites GData API to allow users to export an entire Google Site as static html pages to a directory on their hard drive. The html is embedded with meta-data based on the hAtom microformats specification, to allow the re-import of html back into Google Sites. Applications of the tool include backing up a Google Site, switching to or from a different service, and editing a Site offline.

### Simple Execution

Download the version [1.0.5](https://sih4sing5hong5.github.io/google-sites-liberation/jar/google-sites-liberation-1.0.5-jar-with-dependencies.jar) now! The tool has been packaged as an executable jar.  If [Java](http://java.sun.com/) is installed, just **double-click on it**.

You can run it in command line, too.
```bash
java -jar google-sites-liberation-1.0.5-jar-with-dependencies.jar
```

### Advanced Execution

The tool is written in Java and the source code is currently hosted at code.google.com. Upon building the tool, there are three main classes. The class com.google.sites.liberation.export.Main allows the execution of a Sites export from the command line. The class com.google.sites.liberation.imprt.Main is the equivalent for a Sites import (note that the package name is "imprt," due to the Java keyword collision). The class com.google.sites.liberation.util.GuiMain provides a graphical user interface for launching both imports and exports. In all cases, the import/export takes the following arguments:

| Name | Flag | Usage |
|:-----|:-----|:------|
| Host | `-h` | If not sites.google.com, specifies the Site's host (optional).  Used for debugging. |
| Domian | `-d` | If the site is a Google Apps site, specifies the domain, e.g. dataliberation.org (optional). |
| Webspace | `-w` | Specifies the webspace of the Site, e.g. "dataliberation" for a site located at `http://sites.google.com/a/domain/dataliberation` |
| Username | `-u` | Specifies the user name used to access the Site. |
{'fraction_non_alphanumeric': 0.10318546023060388, 'fraction_numerical': 0.006449091264412742, 'mean_word_length': 4.195939086294416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6753231', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1421, 'n_words': 615}