# Internet Archive Update

### 1. Overview and Context

This procedure updates the <span class="mw-headline">InternetArchive</span> table in the [SQL Database](https://docs.punctumbooks.com/books/service-component-library/page/sql-database).

### 2. Triggers

The execution of this procedure is usually triggered by

- [Metrics](https://docs.punctumbooks.com/books/service-portfolio-management-spm/page/metrics-process)

### 3. Steps to Be Performed

#### 3.1 Download

<span class="mw-headline">Usage data are directly extracted using the Internet Archive usage data API. We have written a [script](https://docs.punctumbooks.com/books/scripts/page/internet-archive-usage-data-csv-python-script) that extracts these data automatically and generates a CSV file, organized by Thoth workId and country per timeframe (usually a month).</span>

<span class="mw-headline">In order to generate the data, make sure all workIds of recently published books are added, and select the correct timeframe. </span>

#### 3.2 Clean

- <span class="mw-headline">Import as encoded as UTF-8</span>
- <span class="mw-headline">Delete header</span>

#### 3.3 Upload

- <span class="mw-headline">Navigate to phpMyAdmin table "InternetArchive"</span>
- select Import tab;
- select file
- click "Go."
- archive files under Punctum Admin &gt; Metrics &gt; Internet Archive


### 4. Additional Information

### 5. Document Control

<table border="1" id="bkmrk-document-id-srm-001-" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 50%;"></col><col style="width: 50%;"></col></colgroup><tbody><tr><td>**Document ID**</td><td>PRO-041</td></tr><tr><td>**Document Owner**</td><td>Vincent</td></tr><tr><td>**Version**</td><td>1.0</td></tr><tr><td>**Last Date of Change**</td><td>March 26, 2026</td></tr><tr><td>**Next Review Due Date**</td><td>  
</td></tr><tr><td>**Version &amp; Change Tracking**</td><td>  
</td></tr></tbody></table>