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 =)
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.
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
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.
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.
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!
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!
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.
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.
If someone got error like this "pymongo.errors.OperationFailure: bad auth : Authentication failed., full error: {'ok': 0, 'errmsg': 'bad auth : Authentication failed.', 'code': 8000, 'codeName': 'AtlasError'}" then try to increase the length of your password. Thanks :)
Hi Tim, I have done what u have done but I am getting an error like "auth error" I don't know what to do. pls kindly help me with it. Thank you. And waiting for your reply.
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.
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?
hello,i'm making a discord bot and one of the commands is basically getting a random word from an list(array) and i also have a command for adding words to the list,i've found how to update mongodb arrays but i havent found out yet how to get the size (length) of the mongodb array,and also how to get an mongodb array element from an index,here's the command in normal code (without pymongo) elif message.content == ".swm": random.seed(time.time()) randnum = random.randint(0, len(list1) - 1) await message.channel.send(list1[randnum].upper())
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!
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?
If i use this for a Discord Bot , I need to find that the user is already in the database or not. if it is yes I need to add 1 for the score if it is not I need to add his info to the database and add 1 to the score. How can I do that?
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
I got this error "TypeError: load_der_x509_certificate() missing 1 required positional argument: 'backend'" after the cluster = MongoClient("... ") command. Anyone knows how to solve this?
any idea why i keep getting this "pymongo.errors.OperationFailure: Authentication failed."? Stack overflow has been no help and my id and password are definitely correct
Tim:
Just released a new video
Me:
Here we go again!
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 =)
@Van Theodore Yea, have been watching on instaflixxer for months myself :D
Your channel is one of the best resources.
Keep going ❤
Thanks !
Many thanks for the easy to follow tutorial. My first time working with MongoDB and this made it super easy to learn.
Thank you! You are going to be known as the person who got me started in MongoDB.
Yep, now when I see Tim, my first thought is: that's the guy who got Louis-Phillipe started in MongoDB. :)
Full CRUD in one short video. Awesome!
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.
Thank you so much, I've always was interested in DB but didn't know how to start )
Super useful! Thank you very much Tim. Hope you and your family are safe in this pandemic!
Tim! Thank you!!!! I love the way your videos are easy to follow, and you're always informing me.
the way you explain things is something to slow on the uptake people like me, thanks Tim!
Not sure I understand what you are saying?!
@@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. :)
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
very true
@@navinormusic Thank you. I cringed so hard when he said that.
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.
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.
So good! as someone who read they're doc back and furth you're explnations are exquisite!
Hey Tim - just wanted to say thanks for everything you do.
This has been the only useful and successful resource I've found.
Very concise and easy to follow ! Thanks !
Tim, Your tutorials on flask POST form & mongodb helped me with projects. Thanx a lot
Thank you for this tutorial sir , explained nicely and in simple manner,
just connected to my first mongodb using your video. Thanks! very good content!
Thanks for this, this is so much better than the documentation
Thank you so much! This was very helpful for my current project
This is my favourite channel
great video, really helped me get started using mongodb with my python discord bot
Liked before watching 😊
Mvp
Again a simple and clear explanation - thx a lot - you are enriching RUclips
One of the best tutorial.
Straight to the point .
We love you ❤
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!
Very simple and straight forward. Thanks!
Love ur tutorials and especially ur pygame series
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!
great video, made learning mongo db a breeze
Thank you very much this was quite simple and straight forward
very helpful toutorial...thank you
simple, understandable ,thanks bro
Tim, you are the best please any way to get the first post for example by index (like we do it in the list)?
Tim: you can give a value for _id
Thanos: Impossible
Thank you very much. You are a life saver
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.
Thank you Tim for this video...Much appreciated
Awesome video Tim, very easy to understand!
nice and simple tutorial, good for getting started
Quick and efficient ! Thanks !
Really nice and quick. Thank you!
I liked the tutorial. But do you have any video on in depth tutorial on Mongodb?
You can read the docs
Thank you so much for this tutorial!
thanks for you work, you explain incredibly well !
Thanks dude, it is helping me sooooo much
Great Job Demonstrating!!
thank you, it helped me alot🙏🏻🙏🏻🙏🏻
Can you also make a video:
Connecting to mongo Atlas using pymongo in Google Colab
This is an excellent video thank you for this.
Thank you! What is your choice for hosting client-side Python code online? Let's say a Django app or a Flask app.
Look into heroku, it's nice
Look into netlify, its amazing
Awesome Tutorial...
Hi Tim! between 8:50-9:20 I cannot see the query results in mongodb, nonetheless I folowed your instructions before...
thanks, nice introduction tutorial
Thank you so much helped me a lot!
Thank you, VitalyzdTv!
Awesome explanation...
Hey thanks :) really helpful looking into document and this video together made it easier:) is there any video made on the django framework
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.
If someone got error like this "pymongo.errors.OperationFailure: bad auth : Authentication failed., full error: {'ok': 0, 'errmsg': 'bad auth : Authentication failed.', 'code': 8000, 'codeName': 'AtlasError'}" then try to increase the length of your password. Thanks :)
any solution for timeout error?
Please help me!
I have one error. It say
query() got an unexpected keyword argument 'lifetime'
how fix it?
Hi Tim, I have done what u have done but I am getting an error like "auth error" I don't know what to do. pls kindly help me with it. Thank you. And waiting for your reply.
Can you please make a video on Scrapping data from websites using Scrappy to store in MongoDB Atlas
I got mongodb certificate verfiy failed. Could you please help to fix this error? Thanks.
import certifi
ca = certifi.where()
cluster = MongoClient("url", tlsCAFile = ca)
add these lines in and it should fix it
This is so freaking awesome
Thanks a lot for this video
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.
While the video was very helpful, I can't help but agree
"the importance of whitelisting all IP's"
Is that always the case? Don't you only need to whitelist the backend IP?
this comment section is full of bots save me
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?
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
Oh wow, expected a shitty tutorial with no explanation. Oh boi did i get surprised!
Great video!
Awesome work! Thank you
hello,i'm making a discord bot and one of the commands is basically getting a random word from an list(array) and i also have a command for adding words to the list,i've found how to update mongodb arrays but i havent found out yet how to get the size (length) of the mongodb array,and also how to get an mongodb array element from an index,here's the command in normal code (without pymongo)
elif message.content == ".swm":
random.seed(time.time())
randnum = random.randint(0, len(list1) - 1)
await message.channel.send(list1[randnum].upper())
So useful. Thanks.
Awesome video, thanks a lot! :)
pymongo.errors.ServerSelectionTimeoutError: No replica set members match selector "Primary()
helpppppppppppppppp im getting this
Chnage ip from mongodb , this was my solution
you gave acces to a certain ip , and maybe you have other one
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!
I have some tutorials on OOP, try those!
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?
use a for loop.
@@richiemoon9218 that would be slow, suppose there are 100 item in the list, it would take Ages to complete.
I am doing a super simple find for a non-index ID of a sample collection in MongoDB, takes 8 seconds. What's wrong?
Hello i did the same and if i refresh collection i don't get my. database created what to do please can someone help me ?
If i use this for a Discord Bot , I need to find that the user is already in the database or not. if it is yes I need to add 1 for the score if it is not I need to add his info to the database and add 1 to the score. How can I do that?
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
Try this:
import pymongo
from pymongo import MongoClient
client = MongoClient()
client = pymongo.MongoClient("url")
pip install dnspython
hey man when i try to do the collections.find or anything really it is just saying the "object" has no attribute called "find"
thank you for this tutorial, it helped me a lot :P
I got this error "TypeError: load_der_x509_certificate() missing 1 required positional argument: 'backend'" after the cluster = MongoClient("... ") command. Anyone knows how to solve this?
Thank you Tim.
Hello Tim, I can't run my Pip Command please help me out for this problem.
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?!
another great one.
How do you check if a document/post exists inside your collection?
Which python IDE did u use in this video?
Sublime text
Unless you have a very good reason, you should use the default id that Mongo generates.
How do i actually display this information in flask?
I'm getting this error:
[WinError 10054] An existing connection was forcibly closed by the remote host
How do you connect to cluster on internal ips????
Will this work in gitpod?
Thank you for this video!!!
when i run my code it is giving invalid certification issue help please
any idea why i keep getting this "pymongo.errors.OperationFailure: Authentication failed."? Stack overflow has been no help and my id and password are definitely correct
i have the same issue and find a stupid solution and it works. add a new user and use it for the auth.
Any resource for working with django with mongodb
Thanks much needed help