Makin search on the other site and getting data and writing in xml
altemurbugra at gmail.com
altemurbugra at gmail.com
Mon Sep 25 20:14:46 EDT 2006
For example i give you an example about making search on one of the
site and get the result.
# #!/usr/bin/python
# # -*- coding: windows-1254; -*-
#
# import urllib
# dictionary = {} # wow, it's actually a dictionary
# words = ['apple', 'banana', 'cheese']
# for word in words:
# dictionary[word] =
urllib.urlopen("http://www.example.com/look.php?w=" + word).read()
#
# print dictionary
i dont know how i can get the words from a txt file for searching by
turn
More information about the Python-list
mailing list