-
Notifications
You must be signed in to change notification settings - Fork 1
Azure function instead of self hosted #1
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
Conversation
WalkthroughThe project has evolved to introduce a serverless API, "Web Cat," hosted on Azure Functions, aimed at responsible web scraping. It's designed to extract content from web pages ethically, adhering to robots.txt rules, and integrates with ChatGPT for enhanced text processing. This transformation includes a deployment workflow, recommended development tools, and core functionality for fetching and processing web content. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to path filters (2)
src/host.jsonis excluded by:!**/*.jsonsrc/local.settings.jsonis excluded by:!**/*.json
Files selected for processing (5)
- .github/workflows/azure-function_webcatgpt.yml (1 hunks)
- .vscode/extensions.json (1 hunks)
- README.md (1 hunks)
- src/function_app.py (1 hunks)
- src/requirements.txt (1 hunks)
Files skipped from review due to trivial changes (1)
- .vscode/extensions.json
Additional comments: 4
src/requirements.txt (1)
- 1-8: The
requirements.txtfile is well-organized and includes clear guidance on managingazure-functions-worker. The listed dependencies are essential for the project's functionality, ensuring it runs efficiently in the Azure Functions environment.README.md (1)
- 5-44: The updates to the README.md file effectively communicate the transition to Azure Functions and the project's capabilities. The documentation is clear, providing users with a comprehensive understanding of the API's features, setup, and ethical web scraping practices.
src/function_app.py (1)
- 1-50: The implementation in
function_app.pyeffectively introduces web scraping functionality to the Web Cat API, with a strong emphasis on ethical practices such as respecting robots.txt. The code is well-structured, with clear error handling and the thoughtful inclusion of random user agent selection..github/workflows/azure-function_webcatgpt.yml (1)
- 1-70: The GitHub workflow file is correctly configured to automate the build and deployment process of the Web Cat project to Azure Functions. The steps for setting up Python, managing dependencies, and deploying the application are well-defined, ensuring a smooth CI/CD pipeline.
Azure function instead of self hosted
Moved to running as an Azure function
Summary by CodeRabbit
New Features
Documentation
Chores