Skip to main content

An archiving tool for Historypin

Project description

pincushion

pincushion is a command line tool for creating archives for resources on Historypin. It reads data from the Historypin API and writes a static website to a given directory. The file structure looks something like:

archive
├── collections
│   ├── my-collection
│   │   ├── image.jpg
│   │   └── index.html
│   ├── my-other-collection
│   │   ├── image.jpg
│   │   └── index.html
│   └── my-last-collection
│       ├── image.jpg
│       └── index.html
├── data.json
├── index.html
├── pins
│   ├── 123 
│   │   ├── image.jpg
│   │   └── index.html
│   ├── 456
│   │   ├── image.jpg
│   │   └── index.html
│   ├── 789 
│   │   ├── image.jpg
│   │   └── index.html
│   ├── 1001 
│   │   ├── index.html
│   │   └── media.mp3
│   └── 2112
│       ├── index.html
│       └── media.mp4
└── user.jpg

Each pin has its own directory, which contains the uploaded media (image, audio or video). The data.json file is an aggregation of JSON data collected from the Historypin API, which is used to create the static site.

Install

pip install pincushion

Use

Create an archive for user 11670:

pincushion user --user-id 11670 --archive-path my-archive

Open the my-archive/index.html file in your browser.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pincushion-0.2.0.tar.gz (74.8 kB view details)

Uploaded Source

Built Distribution

pincushion-0.2.0-py3-none-any.whl (75.8 kB view details)

Uploaded Python 3

File details

Details for the file pincushion-0.2.0.tar.gz.

File metadata

  • Download URL: pincushion-0.2.0.tar.gz
  • Upload date:
  • Size: 74.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for pincushion-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7bc3ae2f0a22d29485fd8d88a7c859d50f78552d449144f282450c7d52675fc2
MD5 2e5d2fd6b9a87229960049eb2179054d
BLAKE2b-256 a1723dc435c74d03829f6c07d261a7f5bf0b6910d8d0930f195bbab41cc8c5b6

See more details on using hashes here.

File details

Details for the file pincushion-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pincushion-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 75.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for pincushion-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 add4b1a633dcf1d685832b04fe96f80072c17871ebf64327a186cac703a60c58
MD5 e61c7318d5b30b4f0126511760d472d6
BLAKE2b-256 ab0d6cee7124b1618c2b600fec18404d3c903ddf4ab93fda6c723e16c668211b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page