python - No module named 'feedparser' -
i have installed python 3.3.3 , downloaded feedparser-5.1.3 "https://code.google.com/p/feedparser/downloads/list" , installed parser. checked parser @ location: "c:\pyhton33\lib\email" , file there name "feedparser". not know why not importing , giving me constant error "no module named 'feedparser' ". here code:
import feedparser import re # returns title , dictionary of word counts rss feed def getwordcounts(url): # parse feed d=feedparser.parse(url) wc={} # loop on entries e in d.entries: if 'summary' in e: summary=e.summary else: summary=e.description # extract list of words words=getwords(e.title+' '+summary) word in words: wc.setdefault(word,0) wc[word]+=1 homecoming d.feed.title,wc
error:
traceback (most recent phone call last): file "c:\python33\generatefeedvector.py", line 1, in <module> import feedparser importerror: no module named 'feedparser'
any help please.
python
No comments:
Post a Comment