Skip to content
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

Review url being optional for SplashRequest #270

Closed
Gallaecio opened this issue Oct 11, 2020 · 6 comments · Fixed by #324
Closed

Review url being optional for SplashRequest #270

Gallaecio opened this issue Oct 11, 2020 · 6 comments · Fixed by #324

Comments

@Gallaecio
Copy link
Contributor

Gallaecio commented Oct 11, 2020

As part of #269, the url parameter to SplashRequest is no longer optional.

@elacuesta noticed that this is a backward-incompatible change. Moreover, the upcoming Scrapy 2.4 will make this change unnecessary (scrapy/scrapy#4835).

We should consider reverting that part of #269.

@lopuhin
Copy link
Contributor

lopuhin commented Oct 12, 2020

sounds good to me, thanks for the heads up @Gallaecio

@Rafiot
Copy link
Contributor

Rafiot commented Oct 13, 2020

Reverting 4154782 will do just that, so just go for it.

@protokoul
Copy link
Contributor

Hi. Is this issue still relevant to the latest version of scrapy-splash? I reverted the changes in 4154782, ran the tests locally and no failures were noticed.

@Gallaecio
Copy link
Contributor Author

Well, I think reverting that commit is precisely the goal. I assume you reverted the entire commit, nor just the non-test code, and that keeping the current test code and applying the rest of the commit would result in broken tests.

@protokoul
Copy link
Contributor

Yes, I reverted the entire commit including the changes to the tests.

@Gallaecio
Copy link
Contributor Author

Gallaecio commented Jan 29, 2025

My understanding is that, reverting the commit, scrapy-splash would fail with scrapy>=2,<2.4 if the URL is omitted, because the default URL uses the unsupported about: protocol.

The easiest solution I think would be to revert that commit and require scrapy>=2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants