{"id":17789500,"url":"https://github.com/benderscript/dlpdatascraper","last_synced_at":"2025-07-13T23:08:32.562Z","repository":{"id":217016499,"uuid":"742938140","full_name":"BenderScript/DLPDataScraper","owner":"BenderScript","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-17T18:14:39.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T11:02:46.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenderScript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-13T20:14:46.000Z","updated_at":"2024-01-13T20:17:40.000Z","dependencies_parsed_at":"2024-01-17T20:23:42.078Z","dependency_job_id":null,"html_url":"https://github.com/BenderScript/DLPDataScraper","commit_stats":null,"previous_names":["benderscript/dlpdatascraper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BenderScript/DLPDataScraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2FDLPDataScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2FDLPDataScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2FDLPDataScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2FDLPDataScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenderScript","download_url":"https://codeload.github.com/BenderScript/DLPDataScraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2FDLPDataScraper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218752,"owners_count":23729528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-27T10:32:37.041Z","updated_at":"2025-07-13T23:08:32.537Z","avatar_url":"https://github.com/BenderScript.png","language":"Python","readme":"# DLP Data Scraper and Generator\n\nDLP Data Scraper and Generator is a Python tool designed to scrape and generate data for data loss prevention (DLP) purposes. It has two modules:\n\n* It fetches DLP test sample data from specified URLs, saves the data in text format, and then converts these text files into PDFs. \n* It uses an OpenAI Assistant to generate DLP mock data \n\n\nThe output is suitable for benchmarking DLP systems or Generative AI Language Learning Models (GenAI LLMs) for prompt injection testing.\n\n## Features\n\n- Web scraping from specified URLs.\n- Data extraction and saving in text format.\n- Conversion of text data to PDF format, ideal for benchmarking DLP systems or GenAI LLMs.\n\n## Installation\n\nTo install DLP Data Scraper, clone the repository and install the required packages:\n\n```bash\ngit clone https://github.com/BenderScript/DLPDataScraper.git\ncd DLPDataScraper/dlp_data_scraper\npip3 install -r requirements.txt\n```\n\n## Usage\n\nTo use the DLP Data Scraper:\n\n```python\nfrom dlp_data_scraper import Umbrella\n\npdf_data = \"pdf_data\"\ntext_data = \"text_data\"\nurl = ('https://support.umbrella.com/hc/en-us/articles/4402023980692-Data-Loss-Prevention-DLP-Test-Sample-Data-for'\n       '-Built-In-Data-Identifiers')\n\nscraper = Umbrella(url=url, text_data=text_data, pdf_data=pdf_data)\nhtml_content = scraper.initialize_browser()\nscraped_data = scraper.scrape_data()\nscraper.save_data_to_files()\nscraper.convert_txt_to_pdf()\n\nprint(\"Scraping and conversion to PDF completed.\")\n```\n\nThis example demonstrates initializing the scraper, scraping data from the specified URL, saving the data to text files, and then converting those text files to PDFs in specified directories.\n\n## Contributing\n\nContributions to DLP Data Scraper are welcome. Please feel free to submit pull requests or open issues to improve the project.\n\n---\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenderscript%2Fdlpdatascraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenderscript%2Fdlpdatascraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenderscript%2Fdlpdatascraper/lists"}