Python MongoDB Tutorial using PyMongo

  Рет қаралды 241,060

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 236
@wikipediabutter9137
@wikipediabutter9137 5 жыл бұрын
Tim: Just released a new video Me: Here we go again!
@vantheodore6165
@vantheodore6165 3 жыл бұрын
you prolly dont care but if you're stoned like me during the covid times then you can watch all of the new movies on InstaFlixxer. I've been binge watching with my gf for the last months =)
@aaronbobby3819
@aaronbobby3819 3 жыл бұрын
@Van Theodore Yea, have been watching on instaflixxer for months myself :D
@adityapaithon6499
@adityapaithon6499 5 жыл бұрын
Your channel is one of the best resources. Keep going ❤
@TechWithTim
@TechWithTim 5 жыл бұрын
Thanks !
@pratikshirbhate8026
@pratikshirbhate8026 4 жыл бұрын
Super useful! Thank you very much Tim. Hope you and your family are safe in this pandemic!
@klnmn3722
@klnmn3722 2 жыл бұрын
Many thanks for the easy to follow tutorial. My first time working with MongoDB and this made it super easy to learn.
@louis-philip
@louis-philip 3 жыл бұрын
Thank you! You are going to be known as the person who got me started in MongoDB.
@lbb2rfarangkiinok
@lbb2rfarangkiinok 3 жыл бұрын
Yep, now when I see Tim, my first thought is: that's the guy who got Louis-Phillipe started in MongoDB. :)
@spanish_with_chris
@spanish_with_chris 3 жыл бұрын
Tim! Thank you!!!! I love the way your videos are easy to follow, and you're always informing me.
@cjacoby75
@cjacoby75 4 ай бұрын
Full CRUD in one short video. Awesome!
@scoreboardapp1232
@scoreboardapp1232 4 жыл бұрын
Thank you so much, I've always was interested in DB but didn't know how to start )
@sankethb.k642
@sankethb.k642 5 жыл бұрын
Liked before watching 😊
@TechWithTim
@TechWithTim 5 жыл бұрын
Mvp
@josecruz2574
@josecruz2574 4 жыл бұрын
Hey Tim - just wanted to say thanks for everything you do.
@funeoz
@funeoz 4 жыл бұрын
Very concise and easy to follow ! Thanks !
@MiRaje8086
@MiRaje8086 4 жыл бұрын
9:47 "always create an ID". Unless you have you're own method of generating secure unique IDs, this is bad advice. The whole point of the auto generated IDs is to be able to assetize each post in your DB. The difference between two people with the same name and age is their unique ID
@navinormusic
@navinormusic 4 жыл бұрын
very true
@laobaba
@laobaba 4 жыл бұрын
@@navinormusic Thank you. I cringed so hard when he said that.
@slipperytiger
@slipperytiger 4 жыл бұрын
There's literally a function built into the "insert_one" method to do this, I have no idea why he would do it this way. It's more work and less reliable to do it yourself.
@FakeHenryF
@FakeHenryF 3 жыл бұрын
Literaly everything i needed and more, I was trying to use pandas to update a google sheets page instead of using a DB like SQL or mongo, and while i got it working, it was a very complicated process trying to understand the google API but this is just simple and i love it.
@Konceptify
@Konceptify 4 жыл бұрын
This has been the only useful and successful resource I've found.
@buuqmarabo2778
@buuqmarabo2778 5 жыл бұрын
the way you explain things is something to slow on the uptake people like me, thanks Tim!
@TechWithTim
@TechWithTim 5 жыл бұрын
Not sure I understand what you are saying?!
@sueholder703
@sueholder703 4 жыл бұрын
@@TechWithTim "It helps to have things explained thoroughly for people who are slow on the uptake, like me! Thanks, Tim" is what he means, I think. :)
@Chandanapbvr
@Chandanapbvr 4 жыл бұрын
This is my favourite channel
@avvn9331
@avvn9331 5 жыл бұрын
Thank you for this tutorial sir , explained nicely and in simple manner,
@BrannenTaylor
@BrannenTaylor 3 жыл бұрын
Very informative and cool. Thanks! One suggestion - if you’re talking in bottom right of screen and coding in upper left, it would be nice to either zoom in on code or enlarge the text. It would make it easier for your audience to follow. Thanks.
@maycodes
@maycodes 3 жыл бұрын
Tim, Your tutorials on flask POST form & mongodb helped me with projects. Thanx a lot
@ofirozeri4084
@ofirozeri4084 2 жыл бұрын
So good! as someone who read they're doc back and furth you're explnations are exquisite!
@ginopeduto4264
@ginopeduto4264 3 жыл бұрын
Again a simple and clear explanation - thx a lot - you are enriching KZbin
@mentefria98
@mentefria98 3 жыл бұрын
Thanks for this, this is so much better than the documentation
@sikcro
@sikcro 5 жыл бұрын
Love ur tutorials and especially ur pygame series
@galexdbr
@galexdbr 4 жыл бұрын
just connected to my first mongodb using your video. Thanks! very good content!
@intrestingvines4263
@intrestingvines4263 3 жыл бұрын
One of the best tutorial. Straight to the point . We love you ❤
@shaharlackritz1553
@shaharlackritz1553 4 жыл бұрын
Very simple and straight forward. Thanks!
@ipekselimoglu4951
@ipekselimoglu4951 3 жыл бұрын
simple, understandable ,thanks bro
@spectralsuccbb7540
@spectralsuccbb7540 3 жыл бұрын
great video, made learning mongo db a breeze
@claudeloeffen6095
@claudeloeffen6095 4 жыл бұрын
Awesome video Tim, very easy to understand!
@lowgn9251
@lowgn9251 2 жыл бұрын
Quick and efficient ! Thanks !
@rainyva8363
@rainyva8363 2 жыл бұрын
great video, really helped me get started using mongodb with my python discord bot
@sergiosanabria7423
@sergiosanabria7423 2 жыл бұрын
Thank you so much! This was very helpful for my current project
@davidchett7719
@davidchett7719 3 жыл бұрын
Great Job Demonstrating!!
@rufaydafamily607
@rufaydafamily607 Жыл бұрын
very helpful toutorial...thank you
@cristian-bull
@cristian-bull 3 жыл бұрын
Tim: you can give a value for _id Thanos: Impossible
@kenrosenberg8835
@kenrosenberg8835 3 жыл бұрын
nice and simple tutorial, good for getting started
@pashamukovoz2537
@pashamukovoz2537 4 жыл бұрын
Really nice and quick. Thank you!
@ronnynijimbere1090
@ronnynijimbere1090 5 жыл бұрын
Thank you Tim for this video...Much appreciated
@krishj8011
@krishj8011 3 жыл бұрын
Awesome Tutorial...
@abdullahmoiz8151
@abdullahmoiz8151 4 жыл бұрын
Thank you very much this was quite simple and straight forward
@joychakraborty3238
@joychakraborty3238 3 жыл бұрын
Awesome explanation...
@shxkxth8135
@shxkxth8135 8 ай бұрын
Thank you very much. You are a life saver
@AndrewOBannon
@AndrewOBannon 4 жыл бұрын
thanks, nice introduction tutorial
@sylvernes9837
@sylvernes9837 4 жыл бұрын
To anyone that put an "@" in their password. You will get an error saying "InvalidURI according to RFC 3986". To avoid this, import "urllib" into your venv/IDE and create a "passwd" variable like so: ``` import urllib passwd = urllib.parse.quote_plus("your_pass_with_@") ``` and pass it into your MongoClient() string. You may or may not see a yellow warning on "parse". If so, you can ignore it.
@bennett8867
@bennett8867 3 жыл бұрын
Thank you so much for this tutorial!
@pkminime
@pkminime 4 жыл бұрын
Awesome work! Thank you
@mathieuhanquin2643
@mathieuhanquin2643 5 жыл бұрын
thanks for you work, you explain incredibly well !
@hypnotie
@hypnotie 4 жыл бұрын
Thank you, VitalyzdTv!
@mralexrex
@mralexrex 4 жыл бұрын
Thanks dude, it is helping me sooooo much
@mfc1190
@mfc1190 4 жыл бұрын
Hi Tim, awesome video! I just wanted to say that for things like update_one or delete_one, you don't actually have to assign it to a variable. Those are going to be operations so if they are in your code they execute. I don't think there is much of a point to assign it as a variable. Thanks!
@ryanbell5779
@ryanbell5779 4 жыл бұрын
This is an excellent video thank you for this.
@Raf2ILZ22
@Raf2ILZ22 4 жыл бұрын
Thank you so much helped me a lot!
@rickshaltz3734
@rickshaltz3734 2 жыл бұрын
This is so freaking awesome
@z0rr0o4
@z0rr0o4 2 жыл бұрын
Thanks a lot for this video
@sembutininverse
@sembutininverse 3 жыл бұрын
thank you, it helped me alot🙏🏻🙏🏻🙏🏻
@sanjabrkic1663
@sanjabrkic1663 3 жыл бұрын
Awesome video, thanks a lot! :)
@patdev6299
@patdev6299 2 жыл бұрын
Hi Tim! between 8:50-9:20 I cannot see the query results in mongodb, nonetheless I folowed your instructions before...
@Deepak61900
@Deepak61900 9 ай бұрын
another great one.
@ela_bd
@ela_bd 4 жыл бұрын
So useful. Thanks.
@alexdin1565
@alexdin1565 2 жыл бұрын
Tim, you are the best please any way to get the first post for example by index (like we do it in the list)?
@akshikaakalanka
@akshikaakalanka 4 жыл бұрын
Thank you! What is your choice for hosting client-side Python code online? Let's say a Django app or a Flask app.
@schrondingerbees
@schrondingerbees 4 жыл бұрын
Look into heroku, it's nice
@safeer786ful
@safeer786ful 4 жыл бұрын
Look into netlify, its amazing
@rjanik2588
@rjanik2588 4 жыл бұрын
Hey tim, i want to ask something.. if i have a structure like this : { "_id": 1, " list" : ["n1", "n2", "n3"] } i have a variable called "item". And I want to cheak item contains in the list or not, How can i do that?
@richiemoon9218
@richiemoon9218 4 жыл бұрын
use a for loop.
@rjanik2588
@rjanik2588 4 жыл бұрын
@@richiemoon9218 that would be slow, suppose there are 100 item in the list, it would take Ages to complete.
@АнастасияМохова-д6к
@АнастасияМохова-д6к 5 жыл бұрын
Thank you for this video!!!
@JohnDoe-ov7pp
@JohnDoe-ov7pp 5 жыл бұрын
Thank you Tim.
@t2elzeth
@t2elzeth 4 жыл бұрын
thank you for this tutorial, it helped me a lot :P
@bowboycode2114
@bowboycode2114 4 жыл бұрын
You make Great Vidz !
@cabrex5864
@cabrex5864 4 жыл бұрын
how do we handle empty results? for example, results = collection.find({"name": "foo"}) returns nothing if I want to print something like: for result in results: if result == '': print("Nothing in here") else: print(result) how would I do it?
@someoneontheinternetuvenev6268
@someoneontheinternetuvenev6268 4 жыл бұрын
you would write *if result == None* because when you dont get a result its an NoneType so *None* is the way to deal with it, cheers ;D
@lost-mar-ble
@lost-mar-ble 4 жыл бұрын
I was trying to run the first code block provided in the official docs of mongodb but it was throwing some access errors. I try to run your code and it ran correctly on the first try. Thanks man!
@danilafarga6810
@danilafarga6810 4 жыл бұрын
this was such a help!
@techstack6076
@techstack6076 4 жыл бұрын
Hey thanks :) really helpful looking into document and this video together made it easier:) is there any video made on the django framework
@yandelyano
@yandelyano 4 жыл бұрын
Thumbs up if you would like a course on how to set up a backend with Flask and MongoDB from Tim. In my opinion MongoDB is a far better and a flexible alternative as compared to say Firebase, a solution using a minimalist framework i.e. Flask would be very much appreciated.
@Lukegg
@Lukegg 2 жыл бұрын
Thanks very much!
@kunalaneja1720
@kunalaneja1720 4 жыл бұрын
I LOVE THIS THANKS SM
@rishabhagarwal9625
@rishabhagarwal9625 3 жыл бұрын
Thanks much needed help
@asmarali4167
@asmarali4167 3 жыл бұрын
I liked the tutorial. But do you have any video on in depth tutorial on Mongodb?
@doctorco2089
@doctorco2089 3 жыл бұрын
You can read the docs
@liweilo1786
@liweilo1786 3 жыл бұрын
I got mongodb certificate verfiy failed. Could you please help to fix this error? Thanks.
@TheLateNightBoyz
@TheLateNightBoyz 3 жыл бұрын
import certifi ca = certifi.where() cluster = MongoClient("url", tlsCAFile = ca) add these lines in and it should fix it
@stevemurch3245
@stevemurch3245 22 күн бұрын
Good video - but the correct terminology is documents, not “posts”. They are only called “posts” in the documentation because they were modeling a blog, where the key documents were (blog) posts.
@vinco_brand
@vinco_brand 5 жыл бұрын
Which python IDE did u use in this video?
@TechWithTim
@TechWithTim 5 жыл бұрын
Sublime text
@WolfDaniel
@WolfDaniel 3 жыл бұрын
really good video
@_Possible
@_Possible 4 жыл бұрын
pymongo.errors.ServerSelectionTimeoutError: No replica set members match selector "Primary() helpppppppppppppppp im getting this
@serbanchisca1158
@serbanchisca1158 4 жыл бұрын
Chnage ip from mongodb , this was my solution
@serbanchisca1158
@serbanchisca1158 4 жыл бұрын
you gave acces to a certain ip , and maybe you have other one
@___aZa___
@___aZa___ 4 жыл бұрын
Oh wow, expected a shitty tutorial with no explanation. Oh boi did i get surprised! Great video!
@disbade
@disbade 4 жыл бұрын
when I go to collections at the start it says status 404 page not found :(
@INfoUpgraders
@INfoUpgraders 4 жыл бұрын
You need to encode your password
@disbade
@disbade 4 жыл бұрын
@@INfoUpgraders how i do dat
@sueholder703
@sueholder703 4 жыл бұрын
@@disbade easiest way is to avoid special characters in your password
@disbade
@disbade 4 жыл бұрын
@@sueholder703 i dont have any special charecters just letters and numbers.
@sova2680
@sova2680 4 жыл бұрын
hi i have the same problem, how did you solve it?
@KoljaMineralka
@KoljaMineralka Жыл бұрын
How do you connect to cluster on internal ips????
@oneof5messer
@oneof5messer 4 жыл бұрын
MongoClient gave me a bunch of errors, when I change it to mongo_client I get File " ", line 4, in cluster =mongo_client(connection copied and password changed) TypeError: 'module' object is not callable
@beaotooable
@beaotooable 4 жыл бұрын
Try this: import pymongo from pymongo import MongoClient client = MongoClient() client = pymongo.MongoClient("url")
@davidblanco7391
@davidblanco7391 3 жыл бұрын
pip install dnspython
@Castisto
@Castisto 5 жыл бұрын
hello tim :) could i make a chess game or a simple/complex application after watching the general python tutorials?(I see there are 4 of them..(beginner/intermediate/OOP/sudoku) Or should i do more reading(texts/Documentations) before i go on. I am kind of afraid because i am soooo bad at OOP.(I want to get used to it..hopefully) I could see u need to know a little about pygame to make games and all..but dont know what to do next because im a beginner :( i want to make a rather complex(?) application by myself as an end goal.. but it's hard for me because of the OOP stuff :( ) still love ur videos tho :D thanks!
@TechWithTim
@TechWithTim 5 жыл бұрын
I have some tutorials on OOP, try those!
@haiyanhao8035
@haiyanhao8035 4 жыл бұрын
So many thanks!
@TheCodeHunter
@TheCodeHunter 4 жыл бұрын
thx tim this worked
@gangumstyle3395
@gangumstyle3395 3 жыл бұрын
hey man when i try to do the collections.find or anything really it is just saying the "object" has no attribute called "find"
@Dan-vu3vt
@Dan-vu3vt 3 жыл бұрын
It was extremely annoying to set up when you named the project, database and collection 'test', so you don't know what corresponds to what if you're trying to use meaningful names. Additionally, you never mentioned the importance of whitelisting all IP's.
@neilshah4440
@neilshah4440 3 жыл бұрын
While the video was very helpful, I can't help but agree
@cristian-bull
@cristian-bull 3 жыл бұрын
"the importance of whitelisting all IP's" Is that always the case? Don't you only need to whitelist the backend IP?
@rockoyhead
@rockoyhead 2 жыл бұрын
this comment section is full of bots save me
@tariquekhan5813
@tariquekhan5813 4 жыл бұрын
Hello Tim, I can't run my Pip Command please help me out for this problem.
@arafathusseinbinriaskhan8922
@arafathusseinbinriaskhan8922 17 күн бұрын
5 years old, still suitable for latest updates?
@Zee-vh4gn
@Zee-vh4gn 5 жыл бұрын
Hey Tim, having some Import Error, can't make anything of it. Exception has occurred: ImportError cannot import name 'MongoClient' from partially initialized module 'pymongo' (most likely due to a circular import)
@sueholder703
@sueholder703 4 жыл бұрын
try: mongo_client
@beerihimmelman1917
@beerihimmelman1917 4 жыл бұрын
You named your script pymongo.py, which masks the pymongo module from which you are importing. Rename your script to something else (and delete the pymongo.pyc file if one was created next to it).
@1UniverseGames
@1UniverseGames 3 жыл бұрын
How can I List the outer-most fields of the documents?
@nikhilkumar-zz7ov
@nikhilkumar-zz7ov 4 жыл бұрын
Hello I Have a doubt.My Database contains a array of values and I want to retrieve the values and store it in a variable.How can I do that?!
@sham27khan
@sham27khan 3 жыл бұрын
can you help how to use pemcertificate with pymongo
@brimmed
@brimmed 4 жыл бұрын
at the beginning you talked about using it for discord, which is something i'm trying to do. can someone confirm if it's necessary to use Motor for incorporating it with a discord bot. assuming i'd need the asynchronous function since that's what i've been reading about discord bots
@sharmishthabapuli8673
@sharmishthabapuli8673 3 жыл бұрын
yes you need to use MotorClient
@tsvillain
@tsvillain 3 жыл бұрын
How can i make mongodb schema like we can do in nodejs with mongoose?
@dejoma.
@dejoma. 4 жыл бұрын
I am doing a super simple find for a non-index ID of a sample collection in MongoDB, takes 8 seconds. What's wrong?
@vaiterius
@vaiterius 3 жыл бұрын
How do you check if a document/post exists inside your collection?
@jairajsahgal7101
@jairajsahgal7101 2 жыл бұрын
Any resource for working with django with mongodb
MongoDB Crash Course
29:59
Web Dev Simplified
Рет қаралды 719 М.
MongoDB + Python #1 - CRUD, Relationships and More
54:52
Tech With Tim
Рет қаралды 108 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 21 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 16 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 55 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,2 МЛН
MongoDB in Python - NoSQL Document Database
24:33
NeuralNine
Рет қаралды 55 М.
MongoDB Crash Course With Python 2022
38:21
Patrick Loeber
Рет қаралды 56 М.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 704 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 771 М.
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 65 М.
Learn MongoDB in 1 Hour 🍃
1:00:00
Bro Code
Рет қаралды 1,1 МЛН
How to Use FastAPI: A Detailed Python Tutorial
20:38
ArjanCodes
Рет қаралды 266 М.
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 371 М.
Watch This Before Using Django With MongoDB
9:18
Dennis Ivy
Рет қаралды 45 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 21 МЛН