feedparser icon indicating copy to clipboard operation
feedparser copied to clipboard

How to parse item to json for storing in mongodb

Open rohitkhatri opened this issue 8 years ago • 2 comments

How can I parse the FeedParserDict to json, so I can store that in the database?

rohitkhatri avatar Jan 19 '17 09:01 rohitkhatri

You should ask this question on http://stackoverflow.com/.

akshaybabloo avatar Feb 07 '17 00:02 akshaybabloo

import feedparser import json feed =feedparser.parse(url) output =json.dumps(feed)

On Mon, 6 Feb 2017, 16:36 Akshay Raj Gollahalli, [email protected] wrote:

You should ask this question on http://stackoverflow.com/.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kurtmckee/feedparser/issues/92#issuecomment-277861493, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGCwIixJ9b60rqZFvGTPEGkT22ObWAqks5rZ7yOgaJpZM4Ln44K .

kevinmarks avatar Feb 07 '17 00:02 kevinmarks