requests-html
requests-html copied to clipboard
Allow custom ExecutablePath for chromium
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.
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.
Thank you!
PR #408 will resolve this issue.
can this be merged please
@surister please merge this 🙏