Apify Discord Mirror

I'm having one issue when I'm using the apify run

it's doing Python -m src

whereas to run my project I need to run python3.10 -m src

Is there any way I can fix that?

while using python -m src, it's using the 3.13 version which is my default version and throwing error so for the project i have used python3.10

Would be great if you share any fixes for this
2 comments
S
I'm trying to run my actor & it's giving this log:
Plain Text
2025-03-09T00:13:41.538Z ACTOR: Pulling Docker image of build 20IgkKFk3QAzeFbk9 from repository.
2025-03-09T00:13:42.170Z ACTOR: Creating Docker container.
2025-03-09T00:13:42.237Z ACTOR: Starting Docker container.
2025-03-09T00:13:44.148Z Downloading model definition files...
2025-03-09T00:13:44.419Z Error downloading fingerprint-network.zip: [Errno 13] Permission denied: '/usr/local/lib/python3.13/site-packages/browserforge/fingerprints/data/fingerprint-network.zip'
2025-03-09T00:13:44.430Z Downloading model definition files...
2025-03-09T00:13:44.452Z Error downloading input-network.zip: [Errno 13] Permission denied: '/usr/local/lib/python3.13/site-packages/browserforge/headers/data/input-network.zip'
...
2025-03-09T00:13:44.580Z   File "/usr/local/lib/python3.13/site-packages/browserforge/bayesian_network.py", line 288, in extract_json
2025-03-09T00:13:44.582Z     with zipfile.ZipFile(path, 'r') as zf:
2025-03-09T00:13:44.583Z          ~~~~~~~~~~~~~~~^^^^^^^^^^^
2025-03-09T00:13:44.586Z   File "/usr/local/lib/python3.13/zipfile/__init__.py", line 1367, in __init__
2025-03-09T00:13:44.588Z     self.fp = io.open(file, filemode)
2025-03-09T00:13:44.590Z               ~~~~~~~^^^^^^^^^^^^^^^^
2025-03-09T00:13:44.592Z FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.13/site-packages/browserforge/headers/data/input-network.zip'
10 comments
A
a
The python Crawlee + Playwright + Chrome template is broken.

Selecting this template and immediately building/running it on the Apify platform Web IDE results in a Running as root without --no-sandbox is not supported error.
3 comments
P
M
Hi hi,

Am looking for guidance on how I could interact with the Google Maps Srapper in my django application, I already have a model and a view that I would like to add the individual reviews from a particular listing.

NB: I have numerous listings that I will also need to get the reviews from and present them based on their own url/details
3 comments
M
N
If i use multiple files, what is the best way to pass data (user input, which contains 'max_results' or something) to my routes.py?

example snippet main.py
Plain Text
        max_results = 5 # example

        crawler = PlaywrightCrawler(
            headless=False, 
            request_handler=router,
        )
        await crawler.run([start_url])


snippet routes.py
Plain Text
@router.default_handler
async def default_handler(context: PlaywrightCrawlingContext) -> None:
    max_results = ???
3 comments
D
M
В