First off, thank you for considering contributing! 🎉
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/xiaozhucchongya-byte/instagram-account-scraper.git cd instagram-account-scraper - Install in development mode:
pip install -e ".[dev]" - Create a branch for your feature:
git checkout -b feature/my-new-feature
# Run all tests
pytest
# Run with coverage
pytest --cov=ig_scraper
# Run a specific test file
pytest tests/test_scraper.py -v- Follow PEP 8 (use
flake8or your editor's linter). - Use type hints for all function signatures.
- Keep functions focused and well-documented.
- Add docstrings for all public functions and classes.
- Write the code in
src/ig_scraper/. - Add tests in
tests/. - Update the README if the feature is user-facing.
- Update the CHANGELOG.
- Run tests:
pytest - Commit with a clear message:
feat: add hashtag story scraping
We use Conventional Commits:
feat:New featurefix:Bug fixdocs:Documentation onlyrefactor:Code refactoringtest:Test additions or changeschore:Build/tooling changes
- Ensure all tests pass:
pytest - Update documentation if needed.
- Add a changelog entry under
[Unreleased]inCHANGELOG.md. - Open a pull request with a clear description of the changes.
Please use the GitHub issue tracker to report bugs.
Include:
- Python version
- Operating system
- Steps to reproduce
- Expected vs actual behavior
- Error messages / tracebacks
We welcome feature requests! Please open an issue with:
- A clear description of the feature
- The use case it addresses
- Any alternatives you've considered
Be respectful and constructive. We're all here to build something useful together.