Using R for scraping an basic HTML page - HTTP error 400.

I need to scrape in R one website. The web is not secure its public but somehow the source is hidden or secured. You can see the tags and html elements in chrome preview F12 but not in page source.
The error I get: Error in open.connection(x, "rb") : HTTP error 400.
The page is this:

It's a public url for a given invoice. I just need to scrape some divs in R and make statistics.
My code:
tax_invoice <- read_html("")
thank you in advance !!!

It appears that the website probably wants you to add some headers or cookies to the request, but I'm not sure exactly which ones. Some of the information returned by that page is easier to access than others. It would help if I knew exactly what pieces of information you were hoping to obtain.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.