Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
docs: added first ollama example
Marco Periniaa6a76e5bdf6
diff --git a/README.md b/README.mdindex 838e7f08..df75fbd9 100644--- a/README.md+++ b/README.md@@ -51,8 +51,8 @@ from scrapegraphai.graphs import SmartScraperGraph# Define the configuration for the scraping pipelinegraph_config = {"llm": {- "api_key": "YOUR_OPENAI_API_KEY",- "model": "openai/gpt-4o-mini",+ "model": "ollama/llama3.2",+ "model_tokens": 8192},"verbose": True,"headless": False,@@ -72,6 +72,20 @@ import jsonprint(json.dumps(result, indent=4))```+> [!NOTE]+> For OpenAI and other models you just need to change the llm config!+> ```python+>graph_config = {+> "llm": {+> "api_key": "YOUR_OPENAI_API_KEY",+> "model": "openai/gpt-4o-mini",+> },+> "verbose": True,+> "headless": False,+>}+>```++The output will be a dictionary like the following:```python@@ -126,6 +140,16 @@ Remember to have [Ollama](https://ollama.com/) installed and download the modelsThe documentation for ScrapeGraphAI can be found [here](https://scrapegraph-ai.readthedocs.io/en/latest/).Check out also the Docusaurus [here](https://docs-oss.scrapegraphai.com/).+## π€ Contributing++Feel free to contribute and join our Discord server to discuss with us improvements and give us suggestions!++Please see the [contributing guidelines](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/CONTRIBUTING.md).++[](https://discord.gg/uJN7TYcpNa)+[](https://www.linkedin.com/company/scrapegraphai/)+[](https://twitter.com/scrapegraphai)+## π ScrapeGraph API & SDKsIf you are looking for a quick solution to integrate ScrapeGraph in your system, check out our powerful API [here!](https://dashboard.scrapegraphai.com/login)@@ -158,16 +182,6 @@ The Official API Documentation can be found [here](https://docs.scrapegraphai.co</a></div>-## π€ Contributing--Feel free to contribute and join our Discord server to discuss with us improvements and give us suggestions!--Please see the [contributing guidelines](https://github.com/VinciGit00/Scrapegraph-ai/blob/main/CONTRIBUTING.md).--[](https://discord.gg/uJN7TYcpNa)-[](https://www.linkedin.com/company/scrapegraphai/)-[](https://twitter.com/scrapegraphai)-## π TelemetryWe collect anonymous usage metrics to enhance our package's quality and user experience. The data helps us prioritize improvements and ensure compatibility. If you wish to opt-out, set the environment variable SCRAPEGRAPHAI_TELEMETRY_ENABLED=false. For more information, please refer to the documentation [here](https://scrapegraph-ai.readthedocs.io/en/latest/scrapers/telemetry.html).