Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scrape2json

Extract structured data from PDFs and web pages using AI.

Installation

pnpm install

Configuration

Copy .env.example to .env and add your ScrapeGraph API key:

cp .env.example .env

Then edit .env:

SCRAPEGRAPH_API_KEY=your-api-key-here

Usage

node scrape2json.js <url>

Examples

# Extract from PDF
node scrape2json.js https://dserver.bundestag.de/brd/2025/0204-25.pdf

# Extract from webpage
node scrape2json.js https://www.bundestag.de/dokumente/textarchiv/2025/kw42-de-rente-1115416

Output

Returns JSON with:

  • date — relevant implementation date
  • title — document title
  • summary — one paragraph summary in English

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages