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: https://efiskalizimi-app-test.tatime.gov.al/invoice.../...

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("https://efiskalizimi-app.tatime.gov.al/invoice-check/#/verify?iic=62AC7297F5630E8F1164397B3C444408&tin=L62203504M&crtd=2021-07-06T16:13:50%2002:00&ord=4536&bu=td433no981&cr=kk646wq776&sw=cc302yz654&prc=582104.00")
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.