On Mon, Aug 1, 2011 at 7:20 PM, Gaurav Paliwal <[email protected] > wrote:
> Hi, > > How is the idea ?? >> > > Idea is good but as a trial first install analytics on planet and see how > many people actually reads these type of feeds, then if that number is 10+ > then I think it is good for go for this newsletter. > Karma kiye ja... phal ki echchha mat karo :) @Nilesh - This is a old script... do not know how to fetch RSS of a perticular time period import time from urllib2 import urlopen from BeautifulSoup import BeautifulSoup # Replace USERNAME with your twitter username url = u'http://twitter.com/nsisodiya?page=%s' tweets_file = open('tweets', 'w') for x in range(10*10000): f = urlopen(url % x) soup = BeautifulSoup(f.read()) f.close() tweets = soup.findAll('span', {'class': 'entry-content'}) if len(tweets) == 0: break [tweets_file.write(x.renderContents() + '\n') for x in tweets] # being nice to twitter's servers time.sleep(5) tweets_file.close() -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
