You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+94-13Lines changed: 94 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,27 +27,108 @@ pip install apify[scrapy]
27
27
28
28
For usage instructions, check the documentation on [Apify Docs](https://docs.apify.com/sdk/python/).
29
29
30
-
## Example
30
+
## Examples
31
+
32
+
Below are few examples demonstrating how to use the Apify SDK with some web scraping-related libraries.
33
+
34
+
### Apify SDK with HTTPX and BeautifulSoup
35
+
36
+
This example illustrates how to integrate the Apify SDK with [HTTPX](https://www.python-httpx.org/) and [BeautifulSoup](https://pypi.org/project/beautifulsoup4/) to scrape data from web pages.
31
37
32
38
```python
33
39
from apify import Actor
34
40
from bs4 import BeautifulSoup
35
41
from httpx import AsyncClient
36
42
43
+
44
+
asyncdefmain() -> None:
45
+
asyncwith Actor:
46
+
# Retrieve the Actor input, and use default values if not provided.
0 commit comments