The code
and the link
works fine on my machine. So I guess your results_url
has wrong values. Or your network can't access the resources.
You may try wget -v your_url
to show the detail info of the request.
>>> import os
>>> os.system("wget http://www.nexis.com/delivery/DownloadDoc.do?delFmt=QDS_EF_GENERICTYPE&fileSize=5000&dnldFilePath=%2Fl-n%2Fshared%2Fprod%2Fdiscus%2Fqds%2Frepository%2Fdocs%2F1%2F64%2F1826%3A528229641%2Fformatted_doc&zipDelivery=false&dnldFileName=European_News_in_English2015-09- 08_15-15.TXT&jobHandle=1826%3A528229641")
0
>>> --2015-09-08 06:22:53-- http://www.nexis.com/delivery/DownloadDoc.do?delFmt=QDS_EF_GENERICTYPE
Resolving www.nexis.com (www.nexis.com)... 138.12.4.56
Connecting to www.nexis.com (www.nexis.com)|138.12.4.56|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 鈥楧ownloadDoc.do?delFmt=QDS_EF_GENERICTYPE鈥
[ <=> ] 13,217 20.9KB/s in 0.6s
2015-09-08 06:22:55 (20.9 KB/s) - 鈥楧ownloadDoc.do?delFmt=QDS_EF_GENERICTYPE鈥� saved [13217]
lo@ubuntu:~/aaa$ ll
total 24
drwxrwxr-x 2 lo lo 4096 Sep 8 06:22 ./
drwxr-xr-x 60 lo lo 4096 Sep 8 06:21 ../
-rw-rw-r-- 1 lo lo 13217 Sep 8 06:22 DownloadDoc.do?delFmt=QDS_EF_GENERICTYPE