Implement AI rate limiting, bot automation, and user settings page#111
Merged
Conversation
…d deployment and backup scripts.
… usage tracking with database schema expansion
…loads, and password updates
…oss frontend and backend components
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…s-rate-limit middleware and token-bucket AI limits
…ypass and session persistence for hiring.cafe spider
…ation files and database schemas
…and enhance error handling across services
|
@utsavjoshiNB is attempting to deploy a commit to the utsavjoshi Team on Vercel. A member of the Team first needs to authorize it. |
| logger.warning(f"Browser isolation error on {channel}: {e}. Retrying with different engine...") | ||
| continue | ||
| raise e | ||
| raise last_err |
| gh_id = parts[-1] | ||
| board = parts[-3] if len(parts) >= 4 else "" | ||
| ids.add(f"gh-{board}-{gh_id}") | ||
| except (IndexError, ValueError): |
| try: | ||
| from urllib3.exceptions import NotOpenSSLWarning | ||
| warnings.filterwarnings("ignore", category=NotOpenSSLWarning) | ||
| except ImportError: |
Comment on lines
+21
to
+29
| from spiders.base import ( | ||
| BaseSpider, | ||
| html_to_text, | ||
| extract_yoe, | ||
| extract_salary, | ||
| detect_remote, | ||
| detect_job_type, | ||
| safe_decimal, | ||
| ) |
| posted_at = datetime.fromtimestamp(created_at_ts, tz=timezone.utc) | ||
| elif isinstance(created_at_ts, str): | ||
| posted_at = datetime.fromisoformat(created_at_ts.replace("Z", "+00:00")) | ||
| except (ValueError, OSError): |
| """ | ||
|
|
||
| import logging | ||
| import re |
|
|
||
| import logging | ||
| import re | ||
| from datetime import datetime, timezone |
Comment on lines
+22
to
+29
| from spiders.base import ( | ||
| BaseSpider, | ||
| html_to_text, | ||
| extract_yoe, | ||
| extract_salary, | ||
| detect_job_type, | ||
| safe_decimal, | ||
| ) |
| if pub_date: | ||
| try: | ||
| posted_at = datetime.fromisoformat(pub_date.replace("Z", "+00:00")) | ||
| except (ValueError, AttributeError): |
| @@ -0,0 +1,42 @@ | |||
| import asyncio | |||
| import os | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixed