You gotta love a 2-line python solution
DFS
nospam at dfs.com
Mon May 2 02:13:12 EDT 2016
On 5/2/2016 1:37 AM, Stephen Hansen wrote:
> On Sun, May 1, 2016, at 10:23 PM, DFS wrote:
>> Trying the rawstring thing (say it fast 3x):
>>
>> webpage = "http://econpy.pythonanywhere.com/ex/001.html"
>>
>> ----------------------------------------------------
>> webfile = "D:\\econpy001.html"
>> urllib.urlretrieve(webpage,webfile) WORKS
>> ----------------------------------------------------
>> webfile = "rD:\econpy001.html"
>
> The r is *outside* the string.
>
> Its: r"D:\econpy001.html"
Got it. Thanks.
More information about the Python-list
mailing list