Coder Social home page Coder Social logo

Comments (3)

ManivannanMurugavel avatar ManivannanMurugavel commented on September 26, 2024

Hi @Moondog360,
Please set the full URL like this
https://www.google.com

from selenium-python-aws-lambda.

Moon-developer avatar Moon-developer commented on September 26, 2024

I did do that too. Turned out that it was a timeout issue so changing it from 10 seconds to 15 seconds seemed to fix that problem but now I ran into another problem.

I changed the lambda_function.py to just add one line which is

    if 'url' in event.keys():
        driver.get(event['url'])
        page_data = driver.page_source
        driver.find_element_by_id('action-button').click() # added this line
        print(page_data)
    driver.close()

I zipped the code and uploaded everything like I did before but it's complaining about

{
"errorMessage": "Unable to import module 'lambda_function'"
}

So not sure why this is happening now.

from selenium-python-aws-lambda.

Moon-developer avatar Moon-developer commented on September 26, 2024

Managed to figure out what was wrong. I was not compressing it correctly. I compressed the folder the code was in instead of going into the folder then select everything and compress to .ZIP. This might have been the same problem one of the guys on your website comments section had and didn't realize everything had to be at root of the zip file if that makes sense.

from selenium-python-aws-lambda.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.