Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ jobs:
run: pip install ".[build,test]"

- name: Run tests
run: pytest
run: |
# Move into the tests folder or set PYTHONPATH to ignore the current dir
export PYTHONPATH=""
python -m pytest tests/
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ __pycache__/
# C extensions
*.so

imdbinfo_aws

# Distribution / packaging
.Python
build/
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,8 @@
## v0.8.4
- Updated README
- feat: add debug script for WAF solver with detailed error logging
- Fix WAF challenge extraction and cookie generation logic to handle edge cases and improve reliability
- Fix WAF challenge extraction and cookie generation logic to handle edge cases and improve reliability

## v0.9.0
- Move aws waf module to external package
- Now imdbinfo-aws package is responsible for handling AWS WAF challenges, including cookie generation and management. This separation allows for better modularity and maintainability of the codebase, while still providing the necessary functionality to bypass AWS WAF protections when making requests to IMDb. The main imdbinfo package will now utilize the imdbinfo-aws package for any interactions that require handling AWS WAF challenges, ensuring a cleaner and more focused implementation.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- 🛡️ **Parental guide** including content advisories via `get_parental_guide`
- 📝 **Typed Pydantic models** for predictable responses
- ⚡ **Built-in caching** for faster repeated requests
- 🛡️ AWS WAF solver in CPython for better performance
- ✅ **No API keys required**

## Installation
Expand Down
2 changes: 1 addition & 1 deletion examples/usage_example_waf_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Patch the request_handler to show WAF solver errors
import imdbinfo.services as services
from imdbinfo.aws import AwsSolver
from imdbinfo_aws.aws import AwsSolver

original_get_cookies = services.get_cookies

Expand Down
Loading