posts = [] for url in rawrss: feed = feedparser.parse(url) for post in feed.entries: posts.append((post.title, post.link, post.summary)) df = pd.DataFrame(posts, columns=['title', 'link', 'summary']) # pass data to init </pre>
You must be logged in to post. Please login or register an account.
Well, if it's in pandas, you can do a .to_sql, to either sqlite or mysql.
You can check out sqlite here: https://pythonprogramming.net/sql-database-python-part-1-inserting-database/
MySQL here: https://pythonprogramming.net/mysql-intro/ (which was python2, for python3, use "PyMySQL" instead)
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.