Wget is a very useful tool, however, I dont know how to use it in python. Below is my try but with no luck. Would you tell me the right way ? Thank you very much !!
I made a wwget.py
#!/usr/bin/python
import urllib2, urllib
img=wget("http://blog.freetimegears.com.tw/patrick/archives/Maple-tree.jpg")
Running in termial
:~/abc$ ./wwget.py
Traceback (most recent call last):
File "./wwget.py", line 5, in <module>
img=wget("http://blog.freetimegears.com.tw/patrick/archives/Maple-tree.jpg")
NameError: name 'wget' is not defined