Apify Discord Mirror

Home
Members
KrundleDugins
K
KrundleDugins
Offline, last seen 2 weeks ago
Joined March 1, 2025
Hey everyone,

I have built an Instagram Scraper using Selenium and Chrome that works perfectly until I deploy it as an actor here on Apify.

It signs in fine but fails every time no matter what I do or try when it gets to the Search button.

I have iterated through:

1) search_icon = WebDriverWait(driver, 20).until(
EC.element_to_be_clickable((By.CSS_SELECTOR, "svg[aria-label='Search']"))
)
search_icon.click()

-----

2) search_icon = WebDriverWait(driver, 20).until(
EC.element_to_be_clickable((By.XPATH, "//span[contains(., 'Search')]"))
)
search_icon.click()

-----

3) search_icon = WebDriverWait(driver, 20).until(
EC.element_to_be_clickable((By.XPATH, "//svg[@aria-label='Search']"))
)
search_icon.click()

----

4) try:
search_button = WebDriverWait(driver, 30).until(
EC.element_to_be_clickable((
By.XPATH,
"//a[.//svg[@aria-label='Search'] and .//span[normalize-space()='Search']]"
))
)
# Scroll the element into view just in case
driver.execute_script("arguments[0].scrollIntoView(true);", search_button)
search_button.click()
except TimeoutException:
print("Search button not clickable.")

----

5) search_button = WebDriverWait(driver, 30).until(
EC.element_to_be_clickable((
By.XPATH,
"//a[.//svg[@aria-label='Search'] and .//span[normalize-space()='Search']]"
))
)
driver.execute_script("arguments[0].scrollIntoView(true);", search_button)
search_button.click()


And I have have tried all of these with residential proxies, data center proxies and at different timeout lengths, NOTHING works and there is nothing that I can find in the documentation to help with this issue.

does anyone have any insight into this??

I'd understand if this was failing to even sign in but it is failing at the search button, is the page rendered differently for Apify than it is if your running this from your computer maybe?
2 comments
M
В
Hey all I have a question about whether I can actually use Apify to access Google Gemini for video analyzation:

I've built my own python version of the Gemini Video Analyzer Applet that analyzes social media videos for content style, structure, and aesthetic qualities and it works, I have installed all the Google dependencies required but when I try to run it as an actor using "apify run --purge" no matter what I do it says no module named google found.

Is this a bug with Apify ?

There is no explicit "Google" folder in the Lib\site-packages but when I check the file path it is there:

PS C:\Users\Ken\Apify\run> pip show google-generativeai
Name: google-generativeai
Version: 0.5.2
Summary: Google Generative AI High level API client library and tools.
Home-page: https://github.com/google/generative-ai-python
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: C:\Users\Ken\AppData\Local\Programs\Python\Python313\Lib\site-packages
Requires: google-ai-generativelanguage, google-api-core, google-api-python-client, google-auth, protobuf, pydantic, tqdm, typing-extensions
Required-by:
PS C:\Users\Ken\Apify\run>

Has anyone else run into this issue ?

I was excited to try and recreate my agent team that I already use on Apify, but I keep running into all these problems I haven't had anywhere else and I'm starting to wonder if it's worth putting in the time to continue using Apify. Don't get wrong I think Apify is great for launching simple things like a youtube scraper etc. but for things like deploying a 30 Agent Team as an app I am starting to wonder if the learning curve for using Apify to do this is worth the time?
8 comments
j
K
Hey all, I successfully deployed one actor yesterday and followed all the same steps to deploy my next actor but now the Apify CLI can not detect python anymore when I run "apify run" which is crazy because it has to detect it in order to build the actor in the first place,

This is output in my terminal which shows that it can't detect python but that I can find the version no problem:

PS C:\Users\Ken\New PATH py\testing-it> apify run --purge
Info: All default local stores were purged.
Error: No Python detected! Please install Python 3.9 or higher to be able to run Python Actors locally.
PS C:\Users\Ken\New PATH py\testing-it> python --version
Python 3.13.2

Here's my pyenv.cfg:

home = C:\Program Files\Python313
include-system-site-packages = false
version = 3.13.2
prompt = 'testing-it'
executable = C:\Program Files\Python313\python.exe
command = C:\Program Files\Python313\python.exe -m venv --prompt="." C:\Users\Ken\New PATH py\testing-it.venv

This is from my CMD:
C:\Users\Ken>where python
C:\Program Files\Python313\python.exe

I have added the correct PATHs in my environment variables, uninstalled and reinstalled python, started new apify builds, restarted my computer, and deactivated the Microsoft App Aliases.

The best I can figure is somewhere in the code something is pointing the apify run to somewhere different then C:\Program Files\Python313\python.exe because that is where it is and where it has clearly been found by the apify CLI.

Has this ever happened to anyone else?
9 comments
M
A
K