-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python templates: code finetuning, improve docs and comments
Closes #235
- Loading branch information
Showing
21 changed files
with
146 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Add your dependencies here. | ||
# See https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
# for how to format them | ||
# Define your Python dependencies below. For formatting guidelines, refer to: | ||
# https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
|
||
apify ~= 1.3.0 | ||
beautifulsoup4 ~= 4.12.2 | ||
httpx ~= 0.25.0 | ||
httpx ~= 0.25.2 | ||
types-beautifulsoup4 ~= 4.12.0.7 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
# Define your Python dependencies below. For formatting guidelines, refer to: | ||
# https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
|
||
apify ~= 1.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
# Apify SDK - toolkit for building Apify Actors (Read more at https://docs.apify.com/sdk/python) | ||
""" | ||
This module defines the `main()` coroutine for the Apify Actor, executed from the `__main__.py` file. | ||
Feel free to modify this file to suit your specific needs. | ||
To build Apify Actors, utilize the Apify SDK toolkit, read more at the official documentation: | ||
https://docs.apify.com/sdk/python | ||
""" | ||
|
||
from apify import Actor | ||
|
||
|
||
async def main(): | ||
async def main() -> None: | ||
""" | ||
The main coroutine is being executed using `asyncio.run()`, so do not attempt to make a normal function | ||
out of it, it will not work. Asynchronous execution is required for communication with Apify platform, | ||
and it also enhances performance in the field of web scraping significantly. | ||
""" | ||
async with Actor: | ||
Actor.log.info('Hello from the Actor!') | ||
# Write your code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Add your dependencies here. | ||
# See https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
# for how to format them | ||
# Define your Python dependencies below. For formatting guidelines, refer to: | ||
# https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
|
||
apify ~= 1.3.0 | ||
playwright ~= 1.39.0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Add your dependencies here. | ||
# See https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
# for how to format them | ||
# Define your Python dependencies below. For formatting guidelines, refer to: | ||
# https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
|
||
apify ~= 1.3.0 | ||
selenium ~= 4.14.0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Add your dependencies here. | ||
# See https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
# for how to format them | ||
# Define your Python dependencies below. For formatting guidelines, refer to: | ||
# https://pip.pypa.io/en/latest/reference/requirements-file-format/ | ||
|
||
apify ~= 1.3.0 | ||
beautifulsoup4 ~= 4.12.2 | ||
httpx ~= 0.25.0 | ||
httpx ~= 0.25.2 | ||
types-beautifulsoup4 ~= 4.12.0.7 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters