Page information is populated by Javascript code that runs after the key is loaded. This code makes the requests in real time to the various servers, and etc...
With normal web-Scrapping technologies it is not possible to get this data. When it is so, you have two options:
Tnetar look at the page code (as downloaded by Python - with requests or the Scrapping framework you are using) , and reverse engineer the Javascript-referenced Urls and try to do the same queries from your Python code. In this case, it would even be favorable to do something like this since the Javascript that does the operations is not obfuscated. In addition to a little code on the page itself that you upload, most of the Javascript code is in the URL http://www.nfce.se.gov.br/portal/framework/js/nfce/nfc-e.js .
This option, depending on what data you need and how complex the code is, can be very complicated (if it’s an obfuscated Javascript page, don’t even try to start there).
The other option is to use instead of beautifulsoup, the Selenium - Selenium uses a "real" browser (although, in the current configuration, without a visible window), and runs whole the javascript of the page as in a normal navigation, including performing other HTTP requests. And it exposes an API that allows you to see the generated HTML by javascript executed.
Note that the big difference is that Selenium actually includes a full browser, with a javascript engine (by default it uses firefox, but this is configurable) - and allows your Python program to see the page as it turned out while Javascript is currently running.
This second option is definitely more appropriate for you to follow, since you will not be subject to spending hours analyzing the Javascript code of the page and trying to replicate its behavior, just for a few weeks or months, the authors change the code and you have to redo all the work. With Selenium you take the already rendered HTML from the page and can proceed to isolate the data you need with Beautfulsoup normally.
saved my life man, thanks, that’s what I wanted, now you would know how to bring only the SEFAZ Virtual RS ?
– Rafael Xavier Suarez
something else, as you arrived at this link http://www.nfce.se.gov.br/portal/ConStatusAuto?Origem=1 ?
– Rafael Xavier Suarez
@Rafaelxaviersuarez when requesting the url, the SE server will return all the data. It is up to you to filter the ones you want
– nosklo
@Rafaelxaviersuarez the link I arrived inspecting the page in the browser through the tab "Network"
– nosklo