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

Use yarl to build URLs instead of string manipulations for more robust URL creation #381

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Dec 4, 2024

The goal is to also return an yarl.URL object in the future but that will be a breaking change, so we'll convert them to strings for now. This should make our URLs more robust and get some nice human/quoted urls easily.

  • get_search_url
  • get_info_url
  • get_categorize_url
  • get_download_url

Check what can be refactored/deleted from the ones below.

  • quote_url
  • _sort_url
  • _distinct
  • _format_search_string
  • _urlopen
  • urlopen

@ocefpaf ocefpaf marked this pull request as draft December 4, 2024 16:45
@ocefpaf ocefpaf force-pushed the yarl branch 6 times, most recently from f5a08ad to 45374e7 Compare December 4, 2024 20:14
@ocefpaf ocefpaf changed the title Use yarl to build URLs instead of string manipulations for a more robust URL creation Use yarl to build URLs instead of string manipulations for more robust URL creation Dec 5, 2024
@ocefpaf ocefpaf force-pushed the yarl branch 2 times, most recently from b68ca14 to 10038d3 Compare December 5, 2024 13:03
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 this pull request may close these issues.

1 participant