{"repo":"raznem/parsera","free":true,"listed":false,"github":"https://github.com/raznem/parsera","clone":"git clone https://github.com/raznem/parsera.git","description":"Lightweight library for scraping web-sites with LLMs","language":"Python","stars":1348,"topics":["data-extraction","llm","scraping","python","opensource","webscraping","ai","ai-scraping","playwright"],"license":"GPL-2.0","category":"scrapers-browser-automation","readme_excerpt":"📦 Parsera Lightweight Python library for scraping websites with LLMs. You can test it on Parsera website. Why Parsera? Because it's simple and lightweight. With interface as simple as: Table of Contents - Installation - Documentation - Basic usage - Running with Jupyter Notebook - Running with CLI - Running in Docker Installation Documentation Check out documentation to learn more about other features, like running custom models and playwright scripts. Basic usage First, set up PARSERA API KEY env variable (If you want to run custom LLM see Custom Models). You can do this from python with: Next, you can run a basic version: result variable will contain a json with a list of records: There is also arun async method available: Running with Jupyter Notebook: Either place this code at the beginning of your notebook: Or instead of calling run method use async arun . Running with CLI Before you run Parsera as command line tool don't forget to put your OPENAI API KEY to env variables or .env file Usage You can configure elements to parse using JSON string or FILE . Optionally, you can provide FILE to write output and amount of SCROLLS , that you want to do on the page Running in Docker In case of issues with your local environment you can run Parsera with Docker, see documentation.","default_branch":null,"files":null,"tree":[],"storefront":"/r/raznem","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raznem/parsera/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}