okfn-brasil/querido-diario
About
📰 Brazilian government gazettes, accessible to everyone.
Data & AnalyticsMeasured star growth
- in 24h
- +2
- in 7 days
- +3
- in 15 days
- +8
- in 1 month
- +18
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README-en-US.md
OriginalEnglish (US) | Português (BR)
Querido Diário
Querido Diário
Within the Querido Diário ecosystem, this repository is responsible for scraping official gazettes publishing sites
Find out more about technologies and history of the project on the Querido Diário website
Summary
- How to contribute
- Development Environment
- How to run
- Troubleshooting
- Support
- Thanks
- Open Knowledge Brazil
- Complete Documentation
- License
How to contribute
Thank you for considering contributing to Querido Diário! :tada:
You can find how to do it at CONTRIBUTING-en-US.md!
Also, check the Querido Diário documentation to help you.
Development Environment
You need to have uv installed, which takes care of installing the right Python version and managing the project's virtual environment.
The commands below set it up. They consist of installing the dependencies (including development ones) from the querido_diario_raspadores directory and the code standardization tool pre-commit.
cd querido_diario_raspadores
uv sync --all-groups
cd ..
uv tool install pre-commit
pre-commit install
Configuration on other operating systems is available at "how to setup the development environment", including more details for those who want to contribute to the repository.
How to run
To try running a scraper already integrated into the project or to test what you are developing, follow the commands:
- Go to the
querido_diario_raspadoresdirectory:
cd querido_diario_raspadores
- Check the available scrapers list:
uv run scrapy list
- Run a listed scraper:
uv run scrapy crawl <scraper_name> //example: scrapy crawl ba_acajutiba
The official gazettes collected from scraping will be saved in the
querido_diario_raspadores/datafolderWhen executing item 3, the scraper will collect all official gazettes from the publishing site of that municipality since the first digital edition. For smaller runs, use flags in the run command:
start=YYYY-MM-DD: will set the collecting start date.
uv run scrapy crawl <scraper_name> -a start=<YYYY-MM-DD>
end=YYYY-MM-DD: will set the collecting end date. If omitted, it will assume the date of the day it is being executed.
uv run scrapy crawl <scraper_name> -a end=<YYYY-MM-DD>
Troubleshooting
Check out the troubleshooting file to resolve the most common issues with project environment setup.
Community
Join our community server for exchanges about projects, questions, requests for help with contributions and talk about civic innovation in general.
Thanks
This project is maintained by Open Knowledge Brazil and made possible thanks to the technical communities, volunteers and financial donors, in addition to partner universities, companies supporters and funders.
Meet who supports Querido Diario.
Open Knowledge Brazil
Open Knowledge Brazil is a non-profit civil society organization whose mission is to use and develop civic tools, projects, public policy analysis and data journalism to promote free knowledge in the various fields of society.
All work produced by OKBR is openly and freely available.
Complete Documentation
Here is a complete list of all documentation available in the docs/ folder:
- Code of Conduct | Code of Conduct (EN)
- Contribution Guide | Contribution Guide (EN)
- Support | Support (EN)
- Troubleshooting | Troubleshooting (EN)
License
Code licensed under the MIT License.
Explore related projects
Loading…