# pymongo

PyMongo is a Python distribution and native driver providing synchronous and asynchronous APIs for working with MongoDB databases.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Web Scraping With Scrapy and MongoDB

DevFeed: [Web Scraping With Scrapy and MongoDB](<https://devfeed.tech/articles/web-scraping-with-scrapy-and-mongodb-95799.md>)

Original publisher: [Read original article](<https://realpython.com/web-scraping-with-scrapy-and-mongodb/>)

Author: Martin Breuss

Published: 2026-10-22T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Web Scraping](<https://devfeed.tech/topics/web-scraping.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [pymongo](<https://devfeed.tech/topics/pymongo.md>), [etl](<https://devfeed.tech/topics/etl.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [automated-testing](<https://devfeed.tech/tags/automated-testing.md>), [browser](<https://devfeed.tech/tags/browser.md>), [callback](<https://devfeed.tech/tags/callback.md>), [crawler](<https://devfeed.tech/tags/crawler.md>), [data](<https://devfeed.tech/tags/data.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [python](<https://devfeed.tech/tags/python.md>), [scraping](<https://devfeed.tech/tags/scraping.md>), [store](<https://devfeed.tech/tags/store.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [web](<https://devfeed.tech/tags/web.md>), [web-scraping](<https://devfeed.tech/tags/web-scraping.md>)

### AI overview

The tutorial builds a Scrapy crawler for Books to Scrape that extracts each book's title, price, and URL, follows pagination, and stores results in MongoDB through an item pipeline using PyMongo. It recommends relative CSS selectors and testing them in Scrapy's shell before writing the spider. To prevent duplicate records across runs, one pipeline option hashes each page URL into MongoDB's `_id` and drops existing items; this leaves existing records unchanged if their data later changes. The alternative uses `update_one` with `upsert=True` to insert or refresh records by URL, and requires dropping the existing collection when switching from timestamp-based IDs. The excerpt also covers configurable logging, request error callbacks, spider contracts, and unit tests. It assumes basic Python and HTML/CSS familiarity; the supplied text ends during the unit-testing section, so it does not establish the tutorial's full test implementation.

### Source excerpt

This tutorial covers how to write a Python web crawler using Scrapy to scrape and parse data, and then store the data in MongoDB.

## Building a Faster (Rust-Based) Python Driver for ScyllaDB

DevFeed: [Building a Faster (Rust-Based) Python Driver for ScyllaDB](<https://devfeed.tech/articles/building-a-faster-rust-based-python-driver-for-scylladb-60806.md>)

Original publisher: [Read original article](<https://www.scylladb.com/2026/09/28/building-a-faster-rust-based-python-driver/>)

Author: Cynthia Dunlop

Published: 2026-09-28T12:38:44Z

Content type: article

Language: en

Sources: [ScyllaDB](<https://devfeed.tech/sources/scylladb.md>)

Topics: [pymongo](<https://devfeed.tech/topics/pymongo.md>), [Rust](<https://devfeed.tech/topics/rust.md>)

Tags: [driver](<https://devfeed.tech/tags/driver.md>), [drivers](<https://devfeed.tech/tags/drivers.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [python](<https://devfeed.tech/tags/python.md>), [rust](<https://devfeed.tech/tags/rust.md>), [scylladb](<https://devfeed.tech/tags/scylladb.md>)

### AI overview

The article describes a new ScyllaDB Python driver built on the Rust Driver to improve maintainability, performance, code quality, and typing. It introduces PyO3 as a way to bind Rust to Python and mentions zero-copy deserialization with yoke.

### Source excerpt

Binding Rust to Python with PyO3, zero-copy deserialization with yoke

## Build a Basic CRUD Application With Flask-PyMongo

DevFeed: [Build a Basic CRUD Application With Flask-PyMongo](<https://devfeed.tech/articles/build-a-basic-crud-application-with-flask-pymongo-21829.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2025/04/build-a-basic-crud-application-with-flask-pymongo/>)

Author: Anaiya Raisinghani

Published: 2025-04-26T00:37:28Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [CRUD](<https://devfeed.tech/topics/crud.md>), [Flask](<https://devfeed.tech/topics/flask.md>), [pymongo](<https://devfeed.tech/topics/pymongo.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [application](<https://devfeed.tech/tags/application.md>), [atlas](<https://devfeed.tech/tags/atlas.md>), [back-end](<https://devfeed.tech/tags/back-end.md>), [basic](<https://devfeed.tech/tags/basic.md>), [build](<https://devfeed.tech/tags/build.md>), [building](<https://devfeed.tech/tags/building.md>), [create](<https://devfeed.tech/tags/create.md>), [crud](<https://devfeed.tech/tags/crud.md>), [database](<https://devfeed.tech/tags/database.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [delete](<https://devfeed.tech/tags/delete.md>), [directory](<https://devfeed.tech/tags/directory.md>), [download](<https://devfeed.tech/tags/download.md>), [environment](<https://devfeed.tech/tags/environment.md>), [flask](<https://devfeed.tech/tags/flask.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [pymongo](<https://devfeed.tech/tags/pymongo.md>), [python](<https://devfeed.tech/tags/python.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [update](<https://devfeed.tech/tags/update.md>)

### AI overview

The tutorial introduces Flask-PyMongo as a way to build a basic Flask app with create, read, update, and delete operations backed by MongoDB. It describes Flask as a lightweight, flexible framework without a built-in database abstraction layer, and says Flask-PyMongo integrates with Flask configuration (including MONGO_URI), exposes the PyMongo API, and supports advanced MongoDB features. The shown prerequisites are a MongoDB Atlas free-tier cluster with its IP address whitelisted and connection string saved, the sample dataset, VSCode or another IDE, and Python 3.10+. The excerpt begins virtual-environment setup but cuts off before showing the commands or CRUD implementation.

### Source excerpt

In this tutorial, we will dive head first into utilizing MongoDB's Flask-PyMongo library! We will build a basic CRUD (create, read, update, delete) Flask-PyMongo application and learn about how intuit... The post Build a Basic CRUD Application With Flask-PyMongo appeared first on DEV.

## DynamoDB to MongoDB Migration: Move Your Data in Minutes

DevFeed: [DynamoDB to MongoDB Migration: Move Your Data in Minutes](<https://devfeed.tech/articles/dynamodb-to-mongodb-migration-move-your-data-in-minutes-82093.md>)

Original publisher: [Read original article](<https://estuary.dev/blog/dynamodb-to-mongodb>)

Author: Jeffrey Richman

Published: 2024-04-16T17:59:37Z

Content type: tutorial

Language: en

Sources: [Estuary](<https://devfeed.tech/sources/estuary.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [Amazon DynamoDB](<https://devfeed.tech/topics/amazon-dynamodb.md>), [data migrations](<https://devfeed.tech/topics/data-migrations.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [etl](<https://devfeed.tech/topics/etl.md>), [pymongo](<https://devfeed.tech/topics/pymongo.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [change-data-capture](<https://devfeed.tech/tags/change-data-capture.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [data-migration](<https://devfeed.tech/tags/data-migration.md>), [dynamodb](<https://devfeed.tech/tags/dynamodb.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>)

### AI overview

The tutorial describes two ways to migrate data from DynamoDB to MongoDB: using Estuary's ETL pipeline tool or writing a custom Python script. It outlines setup steps for each approach and discusses risks of custom scripts, including bugs, data loss, security issues, and maintenance effort.

### Source excerpt

Want to migrate data from DynamoDB to MongoDB? This blog will walk you through two efficient methods for this data migration.

## How to Migrate From MariaDB to MongoDB Using Estuary or Python

DevFeed: [How to Migrate From MariaDB to MongoDB Using Estuary or Python](<https://devfeed.tech/articles/how-to-migrate-from-mariadb-to-mongodb-without-the-hassle-82208.md>)

Original publisher: [Read original article](<https://estuary.dev/blog/mariadb-to-mongodb>)

Author: Jeffrey Richman

Published: 2024-04-07T04:00:00Z

Content type: tutorial

Language: en

Sources: [Estuary](<https://devfeed.tech/sources/estuary.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [MariaDB](<https://devfeed.tech/topics/mariadb.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [pymongo](<https://devfeed.tech/topics/pymongo.md>)

Tags: [change-data-capture](<https://devfeed.tech/tags/change-data-capture.md>), [data-migration](<https://devfeed.tech/tags/data-migration.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>)

### AI overview

The tutorial describes migrating MariaDB data to MongoDB using Estuary connectors or a custom Python script. It walks through source and destination configuration, explains continuous synchronization through change data capture, and outlines scripting risks involving data accuracy, schema compatibility, performance, and debugging.

### Source excerpt

Discover the methods for effortlessly moving data from MariaDB to MongoDB and choose the one that best suits your needs for seamless migration.

## Auto incrementing IDs for MongoDB

DevFeed: [Auto incrementing IDs for MongoDB](<https://devfeed.tech/articles/auto-incrementing-ids-for-mongodb-26283.md>)

Original publisher: [Read original article](<https://masnun.com/auto-incrementing-ids-for-mongodb/>)

Author: masnun

Published: 2018-12-06T17:14:35Z

Content type: tutorial

Language: en

Sources: [Abu Ashraf Masnun](<https://devfeed.tech/sources/abu-ashraf-masnun.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [pymongo](<https://devfeed.tech/topics/pymongo.md>), [Database](<https://devfeed.tech/topics/database.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [deprecated](<https://devfeed.tech/tags/deprecated.md>), [general](<https://devfeed.tech/tags/general.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [operator](<https://devfeed.tech/tags/operator.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [pymongo](<https://devfeed.tech/tags/pymongo.md>), [python](<https://devfeed.tech/tags/python.md>), [relational-databases](<https://devfeed.tech/tags/relational-databases.md>)

### AI overview

This tutorial explains how to implement sequential, auto-incrementing IDs in MongoDB using a separate collection that stores the last used numeric ID. It describes atomically incrementing the value before inserting a document and notes that the older find-and-modify approach is deprecated.

### Source excerpt

If you're familiar with relational databases like MySQL or PostgreSQL, you're probably also familiar with auto incrementing IDs. You select a primary key for a table and make it auto incrementing. Every row you insert afterwards, each of them gets a new ID, automatically incremented from the last one. We don't have to keep track [...] The post Auto incrementing IDs for MongoDB appeared first on Abu Ashraf Masnun.