Import RSS feeds to MongoDB

Want to parse online RSS feeds and save to MongoDB collection? Want to schedule and automate this importing task?

Try Withdata FileToMongo, a RSS to MongoDB converter for Windows, MacOS, and Linux, Import RSS feeds to MongoDB, Easy and Fast.

Download Withdata FileToMongo Download FileToMongo

Import online RSS feeds to MongoDB collection

Click “1 File To 1 Collection” at task dialog.

Import XML data from online RSS feeds To MongoDB collection - task window

Select “Import File Type” with “XML”, and select “Source File From” with “Url”.

import online RSS feeds to MongoDB collection - select type

1. Input the RSS feeds URL, and download to XML file.

import online RSS feeds to MongoDB collection - download from RSS feeds URL to XML file

2. Open the saved XML file.

import online RSS feeds to MongoDB collection - open saved XML file

3. Config target MongoDB collection.

import online RSS feeds to MongoDB collection - config MongoDB collection

4. Preview data will be in MongoDB collection.

import online RSS feeds to MongoDB collection - summary

5. Import RSS to MongoDB.

import online RSS feeds to MongoDB collection - import to MongoDB collection

See importing results in MongoDB collection

import online RSS feeds to MongoDB collection - view  MongoDB collection

Import RSS to MongoDB in command line

Save “RSS to MongoDB” session, then you can:

Set scheduled tasks for importing RSS to MongoDB

You can schedule and automate this “RSS to MongoDB” conversion task by:

  1. Save session and create .bat (Windows) or .sh (Linux/macOS) file for “RSS to MongoDB” conversion.
  2. Set scheduled task for “RSS to MongoDB” conversion.

FAQ

What is Withdata FileToMongo?
How long does it take to convert RSS to MongoDB?
Is it safe to convert RSS to MongoDB using FileToMongo?
Can I convert RSS to MongoDB on Linux, Mac OS?
Can I convert RSS to MongoDB in command line?


More about Withdata FileToMongo – RSS to MongoDB Converter

RSS → MongoDB reference

Type mapping

Value kindin RSSin MongoDB
Int<int>1234</int> or a child elementNumberInt / int32
Bigint<bigint>9007199254740993</bigint>NumberLong / int64
Decimal<decimal>1234.56</decimal>Decimal128
Float<float>1.234e10</float>Double
Text<title>text</title>String
Long text<description>text</description>, usually wrapped in CDATAString
Date<pubDate>Mon, 18 Sep 2026 00:00:00 GMT</pubDate> (RFC 822)ISODate
Datetime<pubDate>Mon, 18 Sep 2026 14:30:00 GMT</pubDate> (RFC 822)ISODate
Binaryan enclosure URL, never inline bytesBinData
Booleannot part of the feed vocabularyBool
JSONnot part of the feed vocabularyEmbedded document or array

Dialect differences

RSS is a file format and MongoDB is a database server, so the target has to be told the types the file never carried – the rows below are where the two sides diverge.

Propertyin RSSin MongoDB
port—27017
identifiersXML quoting; content is usually escaped in CDATANo identifier quoting - names are plain strings
row limit—.limit(n) / $limit aggregation stage
datesRFC 822 text, for example Mon, 18 Sep 2026 14:30:00 GMTISODate() / BSON date (millisecond epoch internally)
long text—String (BSON string, no length limit)
binaryVia enclosure URLs, not inlineBinData (BSON binary subtype)
separatorXML elements—
encodingDeclared in the XML declaration—
typingNone—
shapeChannel plus repeated <item> elementsCollections of documents with optional nesting
ceilingA feed is a window on recent items, not a full data set—

Command line

SideCommand
MongoDBmongoexport --collection=c --out=f.json
MongoDB (load)mongoimport --collection=c --file=f.json

FileToMongo without the manual work

For batch jobs, large files and scheduling use the FileToMongo converter — an offline desktop app for Windows, Linux and macOS. Free trial.