Contributing Guide
Thank you for considering contributing to playwright-scraper-skill!
π Reporting Issues
If you find a bug or have a feature suggestion:
- Check Issues to see if it already exists
- If not, create a new Issue
- Provide the following information:
- Problem description
- Steps to reproduce
- Expected vs actual behavior
- Environment (Node.js version, OS)
- Error messages (if any)
π‘ Feature Requests
- Create an Issue with
[Feature Request]in the title - Explain:
- The desired feature
- Use cases
- Why this feature would be useful
π§ Submitting Code
Setting Up Development Environment
# Fork the repo and clone
git clone https://github.com/YOUR_USERNAME/playwright-scraper-skill.git
cd playwright-scraper-skill
# Install dependencies
npm install
npx playwright install chromium
# Test
node scripts/playwright-simple.js https://example.comContribution Workflow
-
Create a new branch:
git checkout -b feature/my-new-feature -
Make your changes
-
Test your changes:
npm test node scripts/playwright-stealth.js <test-URL> -
Commit:
git add . git commit -m "Add: brief description of changes" -
Push and create a Pull Request:
git push origin feature/my-new-feature
Commit Message Guidelines
Use clear commit messages:
Add: new featureFix: issue descriptionUpdate: existing featureRefactor: code refactoringDocs: documentation updateTest: add or modify tests
Example:
Fix: playwright-stealth.js screenshot timeout issue
- Increase timeout parameter to 10 seconds
- Add try-catch error handling
- Update documentation
π Documentation
If your changes affect usage:
- Update
SKILL.md(full documentation) - Update
README.md(quick reference) - Update
examples/README.md(if adding new examples) - Update
CHANGELOG.md(record changes)
β Checklist
Before submitting a PR, confirm:
- Code runs properly
- Doesnβt break existing functionality
- Updated relevant documentation
- Clear commit messages
- No sensitive information (API keys, personal paths, etc.)
π― Priority Areas
Currently welcoming contributions in:
- New anti-bot techniques β Improve success rates
- Support more websites β Test and share success cases
- Performance optimization β Speed up scraping
- Error handling β Better error messages and recovery
- Documentation improvements β Clearer explanations and examples
π« Unaccepted Contributions
- Adding complex dependencies (keep it lightweight)
- Features violating privacy or laws
- Breaking existing API changes (unless well justified)
π Contact
Have questions? Feel free to:
- Create an Issue for discussion
- Ask in Pull Request comments
Thank you for your contribution! π