fix: resolve pagespeed quota permission error and add lxml parser
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Move quota file from scripts/ to /tmp/ (writable by gunicorn process). Add lxml to requirements for faster, more reliable HTML parsing in SEO audits. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6c6f8054d2
commit
3c67968505
@ -36,6 +36,7 @@ user-agents>=2.2.0
|
||||
pdfplumber>=0.10.0
|
||||
|
||||
# SEO Analysis
|
||||
lxml==5.4.0
|
||||
beautifulsoup4==4.14.3
|
||||
selectolax==0.4.6
|
||||
python-whois==0.9.6
|
||||
|
||||
@ -144,8 +144,8 @@ class RateLimiter:
|
||||
if quota_file:
|
||||
self.quota_file = Path(quota_file)
|
||||
else:
|
||||
# Default to scripts directory
|
||||
self.quota_file = Path(__file__).parent / '.pagespeed_quota.json'
|
||||
# Default to /tmp (writable by any user, resets on reboot which is fine for daily quota)
|
||||
self.quota_file = Path('/tmp/.pagespeed_quota.json')
|
||||
|
||||
self._load_quota()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user