Skip to main content

NYT PRB Scraper

>From their website: “The Periodic Review Secretariat (PRS) develops and administers the periodic review process for eligible Guantanamo Bay detainees, including provision of personal representatives to detainees.”

Usage

The PRB engages in three different forms of review for a Guantanamo detainee”s documents: An initial review, a file review and a full review. Technically, a fourth type, the subsequent full review, is available. To date, no subsequent full reviews have been posted.

Initial review

initial_review --csv > initial_review.csv
initial_review --json > initial_review.json
initial_review --tsv > initial_review.tsv

File review

file_review --csv > file_review.csv
file_review --json > file_review.json
file_review --tsv > file_review.tsv

Full review

full_review --csv > full_review.csv
full_review --json > full_review.json
full_review --tsv > full_review.tsv

Schema

Returns a row or an object for every document. Each document contains the document-specific fields like type_name, type_id, and url as well as the detainee-specific fields like name and isn. Builds a unique id for each document from isn-type_id-hearing_or_review_date.

[
    {
        "review_type": "full-review",
        "review_url": "http://www.prs.mil/Review-Information/Initial-Review/",
        "hearing_or_review_date":"2014-11-05",
        "denial":null,
        "name":"Abdel Malik Ahmed Abdel Wahab Al Rahabi",
        "type_id":"1",
        "url":"http:\/\/www.prs.mil\/Portals\/60\/Documents\/ISN037\/141105_U_ISN037_GOVERNMENT'S_UNCLASSIFIED_SUMMARY_PUBLIC.pdf",
        "type_name":"Government's Unclassified Summary",
        "id":"037-initial-review-1-2014-11-05",
        "isn":"037",
        "denied":false,
        "notification_date":"2014-08-26",
        "final_determination_date":"2014-12-05"
    },
    {
        "review_type": "full-review",
        "review_url": "http://www.prs.mil/Review-Information/Initial-Review/",
        "hearing_or_review_date":"2014-11-05",
        "denial":null,
        "name":"Abdel Malik Ahmed Abdel Wahab Al Rahabi",
        "type_id":"2",
        "url":"http:\/\/www.prs.mil\/Portals\/60\/Documents\/ISN037\/141105_U_ISN037_PR_STATEMENT_PRB.pdf",
        "type_name":"Opening Statements of Detainee's Representatives",
        "id":"037-initial-review-2-2014-11-05",
        "isn":"037",
        "denied":false,
        "notification_date":"2014-08-26",
        "final_determination_date":"2014-12-05"
    },
    {
        "review_type": "full-review",
        "review_url": "http://www.prs.mil/Review-Information/Initial-Review/",
        "hearing_or_review_date":"2014-11-05",
        "denial":null,
        "name":"Abdel Malik Ahmed Abdel Wahab Al Rahabi",
        "type_id":"3",
        "url":"http:\/\/www.prs.mil\/Portals\/60\/Documents\/ISN037\/141216_U_ISN037_DETAINEE_WRITTEN_SUBMISSION_PUBLIC.pdf",
        "type_name":"Detainee's Written Submission",
        "id":"037-initial-review-3-2014-11-05",
        "isn":"037",
        "denied":false,
        "notification_date":"2014-08-26",
        "final_determination_date":"2014-12-05"
    },
    {
        "review_type": "full-review",
        "review_url": "http://www.prs.mil/Review-Information/Initial-Review/",
        "hearing_or_review_date":"2014-11-05",
        "denial":null,
        "name":"Abdel Malik Ahmed Abdel Wahab Al Rahabi",
        "type_id":"4",
        "url":"http:\/\/www.prs.mil\/LinkClick.aspx?fileticket=RFOMdQD69k4%3d&tabid=8447&portalid=60&mid=20067",
        "type_name":"Transcript of Public Session",
        "id":"037-initial-review-4-2014-11-05",
        "isn":"037",
        "denied":false,
        "notification_date":"2014-08-26",
        "final_determination_date":"2014-12-05"
    },
    {
        "review_type": "full-review",
        "review_url": "http://www.prs.mil/Review-Information/Initial-Review/",
        "hearing_or_review_date":"2014-11-05",
        "denial":null,
        "name":"Abdel Malik Ahmed Abdel Wahab Al Rahabi",
        "type_id":"5",
        "url":"http:\/\/www.prs.mil\/Portals\/60\/Documents\/ISN037\/141105_U_ISN037_TRANSCRIPT_OF_DETAINEE_SESSION_PUBLIC.pdf",
        "type_name":"Transcript of Detainee Session",
        "id":"037-initial-review-5-2014-11-05",
        "isn":"037",
        "denied":false,
        "notification_date":"2014-08-26",
        "final_determination_date":"2014-12-05"
    },
    {
        "review_type": "full-review",
        "review_url": "http://www.prs.mil/Review-Information/Initial-Review/",
        "hearing_or_review_date":"2014-11-05",
        "denial":null,
        "name":"Abdel Malik Ahmed Abdel Wahab Al Rahabi",
        "type_id":"6",
        "url":"http:\/\/www.prs.mil\/LinkClick.aspx?fileticket=s0XT-7qYc94%3d&tabid=8447&portalid=60&mid=20067",
        "type_name":"Unclassified Summary of Final Determination",
        "id":"037-initial-review-6-2014-11-05",
        "isn":"037",
        "denied":false,
        "notification_date":"2014-08-26",
        "final_determination_date":"2014-12-05"
    }
]

Output

The scrapers can return CSV, JSON or TSV. The default if no options are passed is CSV.

Metadata

Release files for nyt-prb-scraper 0.0.10

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

Source distribution (sdist)

Source distribution for nyt-prb-scraper 0.0.10
File Size Uploaded Provenance
nyt-prb-scraper-0.0.10.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nyt-prb-scraper 0.0.10
File Interpreter ABI Platform
nyt_prb_scraper-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / nyt-prb-scraper-0.0.10.tar.gz

Download URL nyt-prb-scraper-0.0.10.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
94f9dcb065a2b48533bf4846750329e7d08bc4895cb3f4a9856d7c51956c4145
BLAKE2b-256 checksum
How to use checksums
1386de45ddda8e209a1a0924d6b5ab52817df421cae5371620899d4c01e41b4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nyt_prb_scraper-0.0.10-py3-none-any.whl

Download URL nyt_prb_scraper-0.0.10-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dd198d58affd2f198dcc1c7ac472aec4842c8e2462f72b6f4e9b835f455e10f
BLAKE2b-256 checksum
How to use checksums
51dd61050859fd34ad70f1aaa97bb63c65f8438456839fe1b329d2f49ed496a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nyt-prb-scraper 0.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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