Skip to content

test: Add a test of redirect handling in PlaywrightCrawler#873

Merged
janbuchar merged 3 commits intomasterfrom
playwright-redirect-handling-test
Jan 7, 2025
Merged

test: Add a test of redirect handling in PlaywrightCrawler#873
janbuchar merged 3 commits intomasterfrom
playwright-redirect-handling-test

Conversation

@janbuchar
Copy link
Copy Markdown
Collaborator

@janbuchar janbuchar commented Jan 6, 2025

No description provided.

@janbuchar janbuchar added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels Jan 6, 2025
@janbuchar janbuchar requested review from Pijukatel and vdusek January 6, 2025 14:18
@github-actions github-actions bot added this to the 105th sprint - Tooling team milestone Jan 6, 2025
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Jan 6, 2025
async def request_handler(context: PlaywrightCrawlingContext) -> None:
handled_urls.add(context.request.loaded_url or '')

request = Request.from_url(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to add a comment that describes this very specific behavior of httpbin site, that creates redirect based on this specific query parameter.
Maybe add link. To me most readable was https://httpbin.org/legacy (but maybe there is better)

Copy link
Copy Markdown
Collaborator

@vdusek vdusek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would appreacite some explanatory comments as well, otherwise LGTM.

@janbuchar janbuchar merged commit 7b140f4 into master Jan 7, 2025
@janbuchar janbuchar deleted the playwright-redirect-handling-test branch January 7, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants