Coder Social home page Coder Social logo

Comments (5)

YusukeIwaki avatar YusukeIwaki commented on May 18, 2024

Could you share the summary of the scraping code?
I guess Playwright.create is repeatedly called and the Windows process limit is exceeded, but I can't check it in detail without how Playwright is used in your code.

from playwright-ruby-client.

goldenking0412 avatar goldenking0412 commented on May 18, 2024

Can you please give me your email?
I dont want to reveal the code to everyone.
Would like to give code via email

from playwright-ruby-client.

goldenking0412 avatar goldenking0412 commented on May 18, 2024

And also I have a question, How can I use chrome extension? I can not find document in this gem

from playwright-ruby-client.

YusukeIwaki avatar YusukeIwaki commented on May 18, 2024

The error doesn't occur if Playwright.create is called with block or properly used with PlaywrightExecution#stop
Too many Playwright sessions are generated for causing the error.

from playwright-ruby-client.

goldenking0412 avatar goldenking0412 commented on May 18, 2024

@YusukeIwaki

    Playwright.create(playwright_cli_executable_path: './node_modules/.bin/playwright') do |playwright|
      playwright.chromium.launch(headless: false) do |browser|
        page = browser.new_page

        page.goto url
        
        scrape page
      end
    end

Here's summary code.
Do I need to add begin...rescue there?

from playwright-ruby-client.

Related Issues (20)

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.