Your contributions make the software and its documentation better. A special thanks to all the contributors who have played a part in Trafilatura.
There are many ways to contribute, you could:
- Improve the documentation: Write tutorials and guides, correct mistakes, or translate existing content.
- Find bugs and submit bug reports: Help making Trafilatura an even more robust tool.
- Submit feature requests: Share your feedback and suggestions.
- Write code: Fix bugs or add new features.
Here are some important resources:
- List of currently open issues (no pretention to exhaustivity!)
- How to contribute to open source
Here is how you can run the tests and code quality checks:
- Install the necessary packages with
pip install trafilatura[dev]
- Run
pytest
from trafilatura's directory, or select a particular test suite, for examplerealworld_tests.py
, and runpytest realworld_tests.py
or simplypython3 realworld_tests.py
- Run
mypy
on the directory:mypy trafilatura/
- See also the tests Readme for information on the evaluation benchmark
Pull requests will only be accepted if they there are no errors in pytest and mypy.
If you work on text extraction it is useful to check if performance is equal or better on the benchmark.
Please send a pull request to Trafilatura with a list of what you have done (read more about pull requests).
Working on your first Pull Request? See this tutorial: How To Create a Pull Request on GitHub
For further questions you can use GitHub issues and discussion pages, or E-Mail.
Thanks,
Adrien