You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class YahooFinanceScrapper
def initialize(symbol)
@symbol = symbol
@base_url = "https://finance.yahoo.com/quote/"
end
def parse
Puppeteer.launch(headless: true) do |browser|
page = browser.pages.first || browser.new_page
page.viewport = Puppeteer::Viewport.new(width: 1280, height: 800)
page.goto(@base_url + @symbol, wait_until: 'domcontentloaded')
byebug
h1 = page.query_selector("div#quote-header-info h1")
end
end
end
When running page.query_selector("div#quote-header-info h1") or page.query_selector("body") I'm getting *** RuntimeError Exception: Bug of puppeteer-ruby...
Expected behavior
Retrieve the element
Environment
Development
Paste the output of ruby --version: ruby 3.2.1
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Step To Reproduce / Observed behavior
When running
page.query_selector("div#quote-header-info h1")
orpage.query_selector("body")
I'm getting*** RuntimeError Exception: Bug of puppeteer-ruby...
Expected behavior
Retrieve the element
Environment
Development
Paste the output of
ruby --version
: ruby 3.2.1The text was updated successfully, but these errors were encountered: