forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor get_ia.py to use requests instead of urllib.urlopen (interne…
…tarchive#4436) * Move from urllib to requests for 2852 * Use string instead file object. * Use named headers in call for documentation. * Use the raw HTTPRequest when you need to read the response like a file. * Use bytes if reading binary. * Return bytes when needed. * Remove TODO, and mention where this is called. * Correct to use .text for string comparison.
- Loading branch information
1 parent
0ed7b9e
commit 2dff121
Showing
3 changed files
with
32 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters