Skip to main content

GDPR document crawler

Project description


Logo

GDPRxiv Crawler (README)

An efficient tool to crawl GDPR legal documents!

About The Project

With the introduction of the Europeans Union's General Data Protection Regulation (GDPR), there has been an explosion in the number of legal documents pertaining to case reviews, analyses, legal decisions, etc... that mark the enforcement of the GDPR. Additionally, these documents are spread across over 30 Data Protection (DPA) and Supervisory Authorities. As a result, it is cumbersome for researchers/legal teams to access and download a large quantity of GDPR documents at once.

To address this, we have created GDPRxiv Crawler, a command-line tool that allows users to efficiently filter and download GDPR documents. Users may select their desired DPA and document_type, and GDPRxiv Crawler will scrape the web and download all up-to-date documents.

Of course, it is impossible to entirely keep up with DPA website redesigns and newly added document categories. However, we hope that this tool will eliminate the bulk of the workload and allow users to focus on more important tasks.

Built With

Getting Started

Prerequisites

Python 3.9 is required. This python version includes the pip installer and the venv module, which is needed to create a virtual environment.

It is strongly recommended that users utilize a virtual environment when installing this package. See below to create and activate one.

In a directory:

  1. venv:

    virtualenv <virtual env name>
    
  2. Activate the virtual environment:

    source <virtual env name>/bin/activate
    

Installation

At any moment, use command 'pip3 list' to view all installed packages.

  1. Download requirements.txt and place it in the directory that contains the virtual environment.
  2. Install package requirements
    pip3 install -r requirements.txt
    
  3. Install the GDPRxiv Crawler package
    pip3 install -i https://test.pypi.org/simple/ gdprCrawlerTest15
    

Usage

Downloaded documents will be organized into a set of folders based on DPA and document type.

A file called visitedDocs.txt is always created upon an initial run within a new directory. This file records each downloaded document's unique hash, which allows the tool to avoid overwriting existing documents (if desired) in future runs.

  • Scrape desired documents:

    gdprCrawler scrape --country <country name> --document_type <document type> --path <directory to store documents>
    

    The same directory can be used for multiple countries: the scraper automatically organizes documents based on country and document type.

  • Optionally, the --overwrite argument can be included if users would like to overwrite existing documents:

       gdprCrawler scrape --country <country name> --document_type <document type> --path <directory to store documents> --overwrite <True/False>
    

    Overwrite is False by default.

 

Country and document type arguments should be written exactly as they appear below:

SUPPORTED COUNTRIES:     DOCUMENTS TYPES:

        Austria                  Decisions
        Belgium                  Annual Reports, Decisions, Opinions
        Bulgaria                 Annual Reports, Opinions
        Croatia                  Decisions
        Cyprus                   Annual Reports, Decisions
        Czech Republic           Annual Reports, Completed Inspections, Court Rulings, Decisions, Opinions, Press Releases
        Denmark                  Annual Reports, Decisions, Permissions
        EDPB (Agency)            Annual Reports, Decisions, Guidelines, Letters, Opinions, Recommendations
        Estonia                  Annual Reports, Instructions, Prescriptions
        Finland                  Advice, Decisions, Guides, Notices
        France                   FUTURE UPDATE
        Germany                  N/A
        Greece                   Annual Reports, Decisions, Guidelines, Opinions, Recommendations
        Hungary                  Annual Reports, Decisions, Notices, Recommendations, Resolutions
        Ireland                  Decisions, Judgements, News
        Italy                    Annual Reports, Hearings, Injunctions, Interviews, Newsletters, Publications
        Latvia                   Annual Reports, Decisions, Guidances, Opinions, Violations
        Lithuania                Decisions, Guidelines, Inspection Reports
        Luxembourg               Annual Reports, Opinions
        Malta                    Guidelines, News Articles
        Netherlands              Decisions, Opinions, Public Disclosures, Reports
        Poland                   Decisions, Tutorials
        Portugal                 Decisions, Guidelines, Reports
        Romania                  Decisions, Reports
        Slovakia                 Fines, Opinions, Reports
        Slovenia                 Blogs, Guidelines, Infographics, Opinions, Reports
        Spain                    Blogs, Decisions, Guides, Infographics, Reports
        Sweden                   Decisions, Guidances, Judgements, Publications
        United Kingdom           Decisions, Judgements, Notices

Contributing

All suggestions and contributions you make are greatly appreciated.

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Project Link: https://github.com/GDPRxiv/crawler

Acknowledgments

Thank you to everyone who has supported the project in any way. We greatly appreciate your time and effort!

(back to top)

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

gdprCrawlerTest19-0.0.2.tar.gz (123.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdprCrawlerTest19-0.0.2-py3-none-any.whl (179.1 kB view details)

Uploaded Python 3

File details

Details for the file gdprCrawlerTest19-0.0.2.tar.gz.

File metadata

  • Download URL: gdprCrawlerTest19-0.0.2.tar.gz
  • Upload date:
  • Size: 123.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.11

File hashes

Hashes for gdprCrawlerTest19-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6d00064ed14484ace6c8866f3960bcee7a13ff98fee79e9e61025cc138c78ae5
MD5 32526fa3d9ad8cf76bef4ec63bdef48c
BLAKE2b-256 6b96995a122cb21748457a8ba436f5b35afc25fbdfc835c2e2cb03e9d782e757

See more details on using hashes here.

File details

Details for the file gdprCrawlerTest19-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gdprCrawlerTest19-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32e266e3be32b9b4bd1f65d08347dd0773e8dce5326d548ca3f89b91779848f9
MD5 b0b08f1803cf80b61010e1f81b35a710
BLAKE2b-256 e23c5ebc5039ae80abaa3c686d6e68d884f50d9fddc1cdb7e6eff659cc16cdde

See more details on using hashes here.

Supported by

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