Comments (3)
You could try without the space after user-agent=
maybe ?
from pagedown.
Is this a pagedown question on how to pass argument in extra_args
? Or did you try something and it is not working ?
If this is a question on which user agent to set to bypass the restriction on the website you want to reach, I'll bet you'll find answer on the web.
Also if a website has some policy and put in place restriction, you should carefully read the rules of the website to still be authorize to do what you want to do. Usually security measure like prevent headless access are there for a reason.
Anyhow, happy to help with any pagedown bug, for the rest we are not expert in headless chrome usage. pagedown::chrome_print()
is made in the first place to print to PDF document produced by pagedown and is not a special chrome headless tool. Know that you have R packages dedicated to this like chromote and webshot2 which use it.
Hope it helps
from pagedown.
@cderv
Yes, I tried something, and it is not working, i.e., I added:
extra_args = c('--disable-gpu', '--user-agent ="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"')
The browser is still recognized as headless on this test-page. Do I have to escape something, or is perhaps the syntax wrong?
Anyway, I solved the problem meanwhile using chromote.
But still, I would like to know if and how this could be also done using pagedown::chrome_print()
?
Thanks a lot !
from pagedown.
Related Issues (20)
- TOC with multiple pages not working, if build in `default.css` is not used HOT 1
- Some dots (leaders) appearing in code chunk when LOF is on HOT 1
- ETA of Pagedown for Quarto? HOT 1
- aside chunk behaviour/positioning HOT 1
- The tippy package is not working when using `html_paged` output HOT 2
- Paged.js specifications not supported in inline CSS chunks HOT 1
- Upkeep for pagedown
- `usethis::use_tidy_coc()`
- Editing div.date to allow for hyperlinked image
- chrome_print PDF without figure shows WebGL is not supported by your browser
- TOC with more than a page stops the render. HOT 7
- Margin at-rules not applied using chrome_print() HOT 3
- GT table formatting HOT 3
- Problème de mise en page pour mon CV après version 1.2.5042 HOT 15
- sidebar content for multiple pages - resume css
- `chrome_print()` hangs when printing html with maths produced by Quarto HOT 6
- Last rows of long tables are hidden HOT 1
- Adjusting sidebar text and margins
- chrome_print and shiny
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagedown.