-
Notifications
You must be signed in to change notification settings - Fork 145
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 python-requests instead of urllib/urllib2 #104
Comments
From nemow...@gmail.com on February 26, 2014 16:11:06 Blocking: wikiteam:46 |
From nemow...@gmail.com on February 26, 2014 16:11:06 Blocking: wikiteam:103 |
From nemow...@gmail.com on February 26, 2014 16:11:16 Blocking: wikiteam:102 |
From nemow...@gmail.com on February 26, 2014 16:11:16 Blocking: wikiteam:78 |
From nemow...@gmail.com on June 04, 2014 06:23:03 Summary: Use python-requests instead of urllib/urllib2 (was: Reasons to use python-requests instead of urllib/urllib2) |
balrog is mostly done implementing this, hurray! He also has fixed some Unicode handling bugs while at it (perhaps some of those have been separately fixed in master my emijrp though). Watch your patches to avoid overlapping work in the next day or so. |
I'm also trying to rewrite this to use argparse to prevent other issues — currently the argument-parsing code is quite a mess. |
balr0g, 01/07/2014 00:39:
Great. That's #115 . So many |
@balr0g, I get: $ python dumpgenerator.py --xml --images --api=http://www.wikihow.com/api.php |
Can you please stop the dump generation until we finish the major revamp we are doing, and publish a tested and stable version? |
Emilio J. Rodríguez-Posada, 04/07/2014 14:36:
That was only a test, I'm running the old code now for the dumps. |
@nemobis: I think you're running an old version of Requests: https://github.com/kennethreitz/requests/issues/1711 |
balr0g, 04/07/2014 16:28:
Probably; I didn't install it on that machine. Can we check for the We have people running dumpgenerator on python 2.6 still... |
pip install --upgrade -r requirements.txt |
Per emijrp who asked not to run dumps with this, at #104 (comment) Currently proposed things to fix or check: https://github.com/WikiTeam/wikiteam/issues?milestone=1&state=open
…ikiTeam#104) Truncate filename are unnecessary. 1. Most file systems limit filename to 255 _bytes_ (NTFS is 255 _characters_). 2. MediaWiki restricts filename to [no longer than 240 bytes](https://static-codereview.wikimedia.org/MediaWiki/98430.html). 3. Python3 on Windows can handle [extended-length path](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation) automatically.
From nemow...@gmail.com on February 27, 2014 01:08:47
Smart folks nowadays only use Requests, we should probably adopt it everywhere. It may be one thing more to import for our users but let's track how many things it will probably help with.
Original issue: http://code.google.com/p/wikiteam/issues/detail?id=104
The text was updated successfully, but these errors were encountered: