Skip to main content

ptr-claim

Scrape the Tamriel Rebuilt and Project Tamriel websites and visualize claim progress. Currently only works with interior claims on the Tamriel Rebuilt website claims browser.

Installation

  1. Make sure you have python version 3.7 or higher installed and that python is added to your PATH (i.e., accessible from the command line). For Windows, see instructions here.
  2. Install the Tesseract OCR (optical character recognition) engine -- see the install instructions. On Windows, grab the binary from the UB Mannheim site).
  3. On the command line, type pip install ptr-claim. This should download the program and all required dependencies.
  4. On Windows, you will additionally need to install Microsoft C++ Build Tools.

Usage

Open the command line and type ptr-claim. You will be asked for your Tamriel Rebuilt website login and password. This is only needed to populate the claimant and reviewer fields. If those aren't needed, you can enter empty values. The end result will, by default, be output as an HTML file in the working directory. For more options, type ptr-claim -h:

Visualize interior claims on the Tamriel Rebuilt claims browser.

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     Claims browser page containing claims to be scraped. Defaults to 'https://www.tamriel-rebuilt.org/claims/interiors'.
  -o OUTPUT, --output OUTPUT
                        Output image filename. If the file extension is .html, the image will be interactive. Extensions like .png, .jpeg, .webp, .svg, or .pdf will result in a static image. Defaults to 'TR_int_claims.html'.
  -s SCRAPEFILE, --scrapefile SCRAPEFILE
                        JSON file to store scraping outputs in. Defaults to 'interiors.json'
  -w WIDTH, --width WIDTH
                        Output image width (px). Defaults to 1000.
  -t TITLE, --title TITLE
                        Title to be printed on the output. Defaults to 'Tamriel Rebuilt interior claims {date.today()}'.
  -M METHODS, --methods METHODS
                        How to locate missing claim coordinates. 'i' uses optical character recognition on claim images. 't' uses parts of the title to guess the coordinates. 'u' uses known URLs. 'e' fixes Embers of Empire coordinates. You can specify
                        several flags. Defaults to "itue".

Release files for ptr-claim 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptr-claim 0.2.0
File Size Uploaded
ptr-claim-0.2.0.tar.gz 3.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ptr-claim 0.2.0
File Interpreter ABI Platform
ptr_claim-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 6.6 MB

Release files / ptr-claim-0.2.0.tar.gz

Download URL ptr-claim-0.2.0.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ef501fb95355ac3d6d4fae9f76d4bde395a49819b7759b516cdedc2dbfde442a
BLAKE2b-256 checksum
How to use checksums
d51080c09ea8c17930c949af532ef08fdeb9c44ec9d221e4cf971aa1a0ed5e79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release files / ptr_claim-0.2.0-py2.py3-none-any.whl

Download URL ptr_claim-0.2.0-py2.py3-none-any.whl
Size 3.3 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
def647d76d98d3d3980a0e153f49fb2f85a5485e4aa9f518b5b1fc80a90019be
BLAKE2b-256 checksum
How to use checksums
bfd5e59d7441216a24b6048e7532deec8799cb02a02bc22c1ea0d110f5f7153f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page