History

Update SDKs to MIT license

Eric Ciarla committed 2 years ago

Commit afb49e21 parent 002bfdf6 files · +424 −204Browse files

Showing the changes to apps/python-sdk (2 of 6 files). Show all

Unified · Split

2 files
  1. apps/python-sdk/LICENSE +21 −0
  2. apps/python-sdk/README.md +11 −4
apps/python-sdk/LICENSE+21−0
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2024 Sideguide Technologies Inc.
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
apps/python-sdk/README.md+11−4
@@ -15,7 +15,6 @@ pip install firecrawl-py · 14 unmodified lines
151. Get an API key from [firecrawl.dev](https://firecrawl.dev)151. Get an API key from [firecrawl.dev](https://firecrawl.dev)
162. Set the API key as an environment variable named `FIRECRAWL_API_KEY` or pass it as a parameter to the `FirecrawlApp` class.162. Set the API key as an environment variable named `FIRECRAWL_API_KEY` or pass it as a parameter to the `FirecrawlApp` class.
17 17
18
19Here's an example of how to use the SDK:18Here's an example of how to use the SDK:
20 19
21```python20```python
@@ -46,6 +45,7 @@ To scrape a single URL, use the `scrape_url` method. It takes the URL as a param · 24 unmodified lines
46url = 'https://example.com'45url = 'https://example.com'
47scraped_data = app.scrape_url(url)46scraped_data = app.scrape_url(url)
48```47```
48
49### Extracting structured data from a URL49### Extracting structured data from a URL
50 50
51With LLM extraction, you can easily extract structured data from any URL. We support pydantic schemas to make it easier for you too. Here is how you to use it:51With LLM extraction, you can easily extract structured data from any URL. We support pydantic schemas to make it easier for you too. Here is how you to use it:
@@ -53,7 +53,7 @@ With LLM extraction, you can easily extract structured data from any URL. We sup · 1 unmodified line
53```python53```python
54class ArticleSchema(BaseModel):54class ArticleSchema(BaseModel):
55 title: str55 title: str
56 points: int 56 points: int
57 by: str57 by: str
58 commentsURL: str58 commentsURL: str
59 59
@@ -126,20 +126,27 @@ To ensure the functionality of the Firecrawl Python SDK, we have included end-to · 66 unmodified lines
126To run the tests, execute the following commands:126To run the tests, execute the following commands:
127 127
128Install pytest:128Install pytest:
129
129```bash130```bash
130pip install pytest131pip install pytest
131```132```
132 133
133Run:134Run:
135
134```bash136```bash
135pytest firecrawl/__tests__/e2e_withAuth/test.py137pytest firecrawl/__tests__/e2e_withAuth/test.py
136```138```
137 139
138
139## Contributing140## Contributing
140 141
141Contributions to the Firecrawl Python SDK are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.142Contributions to the Firecrawl Python SDK are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
142 143
143## License144## License
144 145
145The Firecrawl Python SDK is open-source and released under the [AGPL License](https://www.gnu.org/licenses/agpl-3.0.en.html).146The Firecrawl Python SDK is licensed under the MIT License. This means you are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the SDK, subject to the following conditions:
147
148- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
149
150THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
151
152Please note that while this SDK is MIT licensed, it is part of a larger project which may be under different licensing terms. Always refer to the license information in the root directory of the main project for overall licensing details.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t