i am new to codeing,as i have just finshed the codecademy.com course on python.
i was looking for somthing to get my brain going and decided to creat a code to interact whit thepiratebat.sx and return the torrents name and seed number,as well as a few outer fetures i had in mind..
this is what i got into:
- Code: Select all
header = "http://"
search_page = "www.thepiratebay.sx"
results = urllib2.urlopen(header+search_page)
print "done checking..."
search = raw_input("what would you like to search for?:")
ender = "/search/"+str(search)+"/0/7/0"
search_results = urllib2.urlopen(header+str(search_page)+ender)
raw_page = search_results.read()
print "it looks like the pirate bay is not reach-able..."
when i run check() and go throw the search veriable the shell window get stuck...i realy have no idea what is going on..can any of you figure it out?