Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function read_airfares() not working #30

Open
rafapereirabr opened this issue Jun 28, 2023 · 1 comment
Open

Function read_airfares() not working #30

rafapereirabr opened this issue Jun 28, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@rafapereirabr
Copy link
Member

The function read_airfares() currently not working because ANAC has changed the url address where the data files are stored.

In the recent past, fares data on domestic and international flights were stored in:

The data is now only available other webinterfaces which work with point and click:

However, haven't been able to extract from the new site the url to the data files:

base_url = 'https://sas.anac.gov.br/sas/downloads/view/frmDownload.aspx?tema=14'

h <- try(rvest::read_html(base_url), silent = TRUE)

# filter elements of basic data
elements <- rvest::html_elements(h, "a")

any help here would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant