requests-html icon indicating copy to clipboard operation
requests-html copied to clipboard

Allow custom ExecutablePath for chromium

Open rix1337 opened this issue 4 years ago • 5 comments

I am using requests-html in my project to scrape sites using JavaScript. I build packages for pypi and docker images using alpine.

Sadly on alpine the pyppeteer autodownload of chromium results in an exception. For this reason pyppeteer provides the "executablePath" option in launch() (see: https://miyakogi.github.io/pyppeteer/reference.html#launcher)

Please provide us with means to change the executablepath when importing requests-html.

rix1337 avatar May 09 '20 16:05 rix1337

Hey, @rix1337 will definitely add this for the new release, meanwhile, you could extend the session class (sync or async one) and launch the browser with your params.

oldani avatar May 10 '20 21:05 oldani

Thank you!

rix1337 avatar May 10 '20 21:05 rix1337

PR #408 will resolve this issue.

samcdavid avatar Aug 10 '20 21:08 samcdavid

can this be merged please

aehlke avatar May 23 '23 23:05 aehlke

@surister please merge this 🙏

aehlke avatar Aug 16 '23 03:08 aehlke