pyppeteer

pyppeteer.errors.ElementHandleError: Evaluation failed: SyntaxError: Unexpected token return

pyppeteer.errors.ElementHandleError: Evaluation failed: SyntaxError: Unexpected token return Question: I want to scrape the x and y axis of a hicharts graph. https://www.highcharts.com/demo/line-basic I´m using html_requests which uses pypeteer to send javascript. chart = r.get("a.com") script= """return Highcharts.charts[0].series[0].data.map(d=>d.y);""" chart.html.render(script=script, reload=False) Now this code results in the following error: pyppeteer.errors.ElementHandleError: Evaluation failed: SyntaxError: Unexpected token return I …

Total answers: 1