docs: fixed missing import
Some checks failed
CodeQL / Analyze (python) (push) Has been cancelled
/ build (push) Has been cancelled
Release / Build (push) Has been cancelled
Release / Release (push) Has been cancelled

This commit is contained in:
Marco Perini 2025-01-02 15:20:49 +01:00 committed by GitHub
parent 30f48b394f
commit 96064f20ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 32 additions and 11 deletions

View File

@ -24,9 +24,21 @@ Just say which information you want to extract and the library will do it for yo
<img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;"> <img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/sgai-hero.png" alt="ScrapeGraphAI Hero" style="width: 100%;">
</p> </p>
## News 📰 ## 🔗 ScrapeGraph API & SDKs
If you are looking for a quick solution to integrate ScrapeGraph in your system, check out our powerful API [here!](https://dashboard.scrapegraphai.com/login)
- ScrapegraphAI has now his APIs! Check it out [here](https://scrapegraphai.com)! <p align="center">
<img src="https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/api-banner.png" alt="ScrapeGraph API Banner" style="width: 100%;">
</p>
We offer SDKs in both Python and Node.js, making it easy to integrate into your projects. Check them out below:
| SDK | Language | GitHub Link |
|-----------|----------|-----------------------------------------------------------------------------|
| Python SDK | Python | [scrapegraph-py](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-py) |
| Node.js SDK | Node.js | [scrapegraph-js](https://github.com/ScrapeGraphAI/scrapegraph-sdk/tree/main/scrapegraph-js) |
The Official API Documentation can be found [here](https://docs.scrapegraphai.com/).
## 🚀 Quick install ## 🚀 Quick install
@ -87,8 +99,8 @@ graph_config = {
# Create the SmartScraperGraph instance # Create the SmartScraperGraph instance
smart_scraper_graph = SmartScraperGraph( smart_scraper_graph = SmartScraperGraph(
prompt="Find some information about what does the company do, the name and a contact email.", prompt="Extract me all the news from the website",
source="https://scrapegraphai.com/", source="https://www.wired.com",
config=graph_config config=graph_config
) )
@ -100,10 +112,20 @@ print(json.dumps(result, indent=4))
The output will be a dictionary like the following: The output will be a dictionary like the following:
```python ```python
{ "result": {
"company": "ScrapeGraphAI", "news": [
"name": "ScrapeGraphAI Extracting content from websites and local documents using LLM", {
"contact_email": "contact@scrapegraphai.com" "title": "The New Jersey Drone Mystery May Not Actually Be That Mysterious",
"link": "https://www.wired.com/story/new-jersey-drone-mystery-maybe-not-drones/",
"author": "Lily Hay Newman"
},
{
"title": "Former ByteDance Intern Accused of Sabotage Among Winners of Prestigious AI Award",
"link": "https://www.wired.com/story/bytedance-intern-best-paper-neurips/",
"author": "Louise Matsakis"
},
...
]
} }
``` ```
There are other pipelines that can be used to extract information from multiple pages, generate Python scripts, or even generate audio files. There are other pipelines that can be used to extract information from multiple pages, generate Python scripts, or even generate audio files.
@ -135,8 +157,7 @@ Try it directly on the web using Google Colab:
## 📖 Documentation ## 📖 Documentation
The documentation for ScrapeGraphAI can be found [here](https://scrapegraph-ai.readthedocs.io/en/latest/). The 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/).
Check out also the Docusaurus [here](https://scrapegraph-doc.onrender.com/).
## 🏆 Sponsors ## 🏆 Sponsors
<div style="text-align: center;"> <div style="text-align: center;">

BIN
docs/assets/api-banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB