Thursday, February 5, 2009

Windows 7 Drivers Optiplex Gx620

downloads pages in html python

With this simple script you can download an html page.
The script is written in python and runs from the command line. The operation is very simple to write the shell: python nomefile.py http://pagina.html nomeFileDaSalvare save the script in the current page.
The script is as follows:


 import urllib; 
import sys;
if len (sys.argv) \u0026lt;2:
print "missing pages and the address of the file name
..."; exit (0);
if len (sys.argv) \u0026lt;3:
print "Missing file name
..."; exit (0);
urllib.urlretrieve (sys.argv [1], sys.argv [2]);
print" Dowload page: "+ sys.argv [1] + "with the name:" + sys.argv [2] + "completed";

With the first two lines indicate the two packages that we need, we urllib serves to make the download and read sys line arguments command. This control

if len (sys.argv) occurs if the array of arguments (sys.args) and specify the url of the page to download and the second checks if len (sys.argv) must ensure also the name of the file saved in the current folder. If you are missing a parameter displays an error message and terminates the program. This statement

: urllib.urlretrieve (sys.argv [1], sys.argv [2]); is the most important because it is one that cares to download and save the page.

Finally a message is printed stating that the download is complete. With few

lines of code we wrote a script strong enough, that if we tried to write in another language such as Java or C + + would have been much more verbose.

Monday, January 26, 2009

Nami X Robin One Piece

L'Emarginato

These days, as known to those who: are interested in the phenomenology of our friendly resident of the beautiful Parthenope, was highlighted in particular, a fairly representative listed under. We are indeed talking about the famous singer neomelodico (according to him sparkling pop-law) Marco Marco art in Marfa, recently appeared in the selections of a famous talent scout program, X-Factor, broadcasted on the state.
For those who saw no need for you comments, lets do it himself, but for the unfortunate few who have not noticed. Describe their reactions to some questions of difficulty I would say Socratic (it's a caricature, in fact, were questions of a terrible banality)
that left us puzzled as to its cultural level is high and his intelligence (a fox).
This man, when compared to known animal cunning, surprised us by Pupo singing the song "Ice Cream" (with singer Tuscan apologize for this) with an attached choreography. Having amazed the committee and its dramatic interpretation, he was asked if he could sing a song in English, but sin that he is not Italian Multilingual and over the English language for him hidden mysteries, however, is justified the singer of "Naples Center" saying that he was following his own, as it happens, just now a course in English.
Then, later he was asked who his choreographer, or perhaps Garrison Steve La Chance, but he guessed a little, was thrilled and almost amiably shook his head in the sense of not understanding (Question worse at school).
Now, however, has had much more serious, poor uvula of gold has been ruled out and now its happened in Campania is going to gradually dwindling and no one buys his albums, perhaps because it is mocked and denigrated in a variety of channels and network television programs, the one who does not Cuozzo is more integrated, is marginalized. So now I ask you support the man otherwise we will lose an unlimited source of information for our studies, and now all together in love we jump from ground zero and a bit more up with Mark and say with one voice Salo: "But it goes to Marco Mietta about fatigue or scuorn 'nfacc to Cuozzo. "