Public
Edited
Feb 15, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
downloadFiles("https://transparencia.fortaleza.ce.gov.br/index.php/despesa/exibirDespesasPorFuncao/2022")
Insert cell
async function downloadFiles(url) {
console.log('início Download')
const browser = await connect({
headless: false,
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const page = await browser.newPage();
await page.goto(url);
await page.waitFor(1000);
// await page.pdf({
// path: `pdf-${url}.pdf`,
// format: 'A4',
// printBackground: true
// });

console.log('fim Download');
await browser.close();
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
puppeteer_web = require(await FileAttachment("puppeteer-web-0.0.3.js").url())
Insert cell
import {view} from '@tomlarkworthy/view'
Insert cell
import { viewof user } from "@endpointservices/login-with-comment"
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more