Skip to content

Commit

Permalink
Merge pull request #1 from GLAM-Workbench/update
Browse files Browse the repository at this point in the history
add notebooks and metadata
  • Loading branch information
wragge authored May 3, 2024
2 parents cb8f41b + d29700a commit 78b9995
Show file tree
Hide file tree
Showing 12 changed files with 2,236 additions and 373 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,20 @@ requirements-tocheck.in
dev-requirements.txt
.idea
.env
draft-*
datasets
pandora-collections.ndjson
pandora-subjects.ndjson
pandora-titles.csv
snapshot-test.ndjson
snapshots.csv
subjects.ndjson
title_urls.ndjson
titles_all.ndjson
titles.csv
titles.db
titles.ndjson
Untitled*
.python-version
http_cache.sqlite
data-rocrate
82 changes: 11 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,83 +1,23 @@
# Trove web archives
# trove-web-archives

Current version: [v0.0.0](https://github.com/GLAM-Workbench/trove-web-archives/releases/tag/v0.0.0)
A GLAM Workbench repository

Tools and examples to woth with Pandora For more information see the [Trove web archives](https://glam-workbench.net/trove-web-archives/) section of the GLAM Workbench.
For more information and documentation see the [Trove web archive collections (Pandora)](https://glam-workbench.net/trove-web-archives) section of the [GLAM Workbench](https://glam-workbench.net).

## Notebook topics
## Notebooks
- [Create title datasets from collections and subjects](https://github.com/GLAM-Workbench/trove-web-archives/blob/master/create-datasets.ipynb)
- [Harvest Pandora subjects and collections](https://github.com/GLAM-Workbench/trove-web-archives/blob/master/harvest-pandora-subject-collections.ipynb)
- [Harvest the full collection of Pandora titles](https://github.com/GLAM-Workbench/trove-web-archives/blob/master/harvest-pandora-titles.ipynb)

* [Notebook title](sample_notebook.ipynb) – this notebook does things

See the [GLAM Workbench for more details](https://glam-workbench.net/trove-web-archives/).
## Associated datasets
- [trove-web-archives-titles](https://github.com/GLAM-Workbench/trove-web-archives-titles)
- [trove-web-archives-collections](https://github.com/GLAM-Workbench/trove-web-archives-collections)


<!-- START RUN INFO -->


## Run these notebooks

There are a number of different ways to use these notebooks. Binder is quickest and easiest, but it doesn't save your data. I've listed the options below from easiest to most complicated (requiring more technical knowledge).

### Using Binder

[![Launch on Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/GLAM-Workbench/trove-web-archives/master/?urlpath=lab/tree/index.ipynb)

Click on the button above to launch the notebooks in this repository using the [Binder](https://mybinder.org/) service (it might take a little while to load). This is a free service, but note that sessions will close if you stop using the notebooks, and no data will be saved. Make sure you download any changed notebooks or harvested data that you want to save.

See [Using Binder](https://glam-workbench.net/using-binder/) for more details.

### Using Reclaim Cloud

[![Launch on Reclaim Cloud](https://glam-workbench.github.io/images/launch-on-reclaim-cloud.svg)](https://app.my.reclaim.cloud/?manifest=https://raw.githubusercontent.com/GLAM-Workbench/trove-web-archives/master/reclaim-manifest.jps)

[Reclaim Cloud](https://reclaim.cloud/) is a paid hosting service, aimed particularly at supported digital scholarship in hte humanities. Unlike Binder, the environments you create on Reclaim Cloud will save your data – even if you switch them off! To run this repository on Reclaim Cloud for the first time:

* Create a [Reclaim Cloud](https://reclaim.cloud/) account and log in.
* Click on the button above to start the installation process.
* A dialogue box will ask you to set a password, this is used to limit access to your Jupyter installation.
* Sit back and wait for the installation to complete!
* Once the installation is finished click on the 'Open in Browser' button of your newly created environment (note that you might need to wait a few minutes before everything is ready).

See [Using Reclaim Cloud](https://glam-workbench.net/using-reclaim-cloud/) for more details.

### Using Docker

You can use Docker to run a pre-built computing environment on your own computer. It will set up everything you need to run the notebooks in this repository. This is free, but requires more technical knowledge – you'll have to install Docker on your computer, and be able to use the command line.

* Install [Docker Desktop](https://docs.docker.com/get-docker/).
* Create a new directory for this repository and open it from the command line.
* From the command line, run the following command:
```
docker run -p 8888:8888 --name trove-web-archives -v "$PWD":/home/jovyan/work quay.io/glamworkbench/trove-web-archives repo2docker-entrypoint jupyter lab --ip 0.0.0.0 --NotebookApp.token='' --LabApp.default_url='/lab/tree/index.ipynb'
```
* It will take a while to download and configure the Docker image. Once it's ready you'll see a message saying that Jupyter Notebook is running.
* Point your web browser to `http://127.0.0.1:8888`

See [Using Docker](https://glam-workbench.net/using-docker/) for more details.

### Setting up on your own computer

If you know your way around the command line and are comfortable installing software, you might want to set up your own computer to run these notebooks.

Assuming you have recent versions of Python and Git installed, the steps might be something like:

* Create a virtual environment, eg: `python -m venv trove-web-archives`
* Open the new directory" `cd trove-web-archives`
* Activate the environment `source bin/activate`
* Clone the repository: `git clone https://github.com/GLAM-Workbench/trove-web-archives.git notebooks`
* Open the new `notebooks` directory: `cd notebooks`
* Install the necessary Python packages: `pip install -r requirements.txt`
* Run Jupyter: `jupyter lab`

See [Getting started](https://glam-workbench.net/getting-started/#using-python-on-your-own-computer for more details.

<!-- END RUN INFO -->

## Cite as

See the GLAM Workbench or [Zenodo](https://doi.org/10.5281/zenodo.3521724) for up-to-date citation details.

----

This repository is part of the [GLAM Workbench](https://glam-workbench.net/).

Created by [Tim Sherratt](https://timsherratt.au) for the [GLAM Workbench](https://glam-workbench.net)
Loading

0 comments on commit 78b9995

Please sign in to comment.