-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Replace urlopen with requests in openlibrary/views/showmarc #4527
Replace urlopen with requests in openlibrary/views/showmarc #4527
Conversation
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Drini Cami <[email protected]>
Co-authored-by: Charles Horn <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, over to @cclauss test + merge when you're able :)
@hornc Do you approve? |
@cclauss The URLs still result in unnecessary redirects -- all archive.org URLs should be |
I must have overlooked the URL comment, sorry. I'll update it later tonight. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…archive#4527) * Replace urlopen with requests. * Update openlibrary/views/showmarc.py Co-authored-by: Christian Clauss <[email protected]> * Update openlibrary/views/showmarc.py Co-authored-by: Christian Clauss <[email protected]> * Update openlibrary/views/showmarc.py Co-authored-by: Drini Cami <[email protected]> * Update openlibrary/views/showmarc.py Co-authored-by: Charles Horn <[email protected]> * use https and remove www subdomain. Co-authored-by: Christian Clauss <[email protected]> Co-authored-by: Drini Cami <[email protected]> Co-authored-by: Charles Horn <[email protected]>
Related #2852
Refactor showmarc to replace urlopen with requests.
Technical
Refactor showmarc to replace urlopen with requests.
Some pylint and pycodestyle changes for formatting.
Testing
Screenshot
N/A
Stakeholders
@cclauss @hornc