I am quite confused by the layout of the code. By looking at the code, I thought you are coding a back-link checker. Since, I could not understand where to start fixing your code, I started from scratch.
I have created a gist you can check out https://gist.github.com/djinn/8224961 On Tue, Dec 31, 2013 at 5:55 PM, Alok Singh Mahor <[email protected]>wrote: > > > > On Mon, Dec 30, 2013 at 9:37 PM, Sharad Birmiwal <[email protected] > > wrote: > >> resp_code=0 >> >>> >>> try: >>> response = urllib2.urlopen(line) >>> html=response.read() >>> >>> >> >> >> Do you need to close all the http sessions you are opening? I don't see >> you doing it. >> >> I tried closing http session after each iteration still writing to file > is not working properly > > -- > -- > Mailing list guidelines and other related articles: > http://lug-iitd.org/Footer > > --- > You received this message because you are subscribed to the Google Groups > "Linux User Group @ IIT Delhi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Supreet Sethi Ph US: +19173102635 Ph IN: +919811143517 Github: https://github.com/djinn Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn -- -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer --- You received this message because you are subscribed to the Google Groups "Linux User Group @ IIT Delhi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
