This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download an entire directory from a web site | |
# -r Turn on recursive retrieving. The default maximum depth is 5. | |
# --no-parent Do not ever ascend to the parent directory when retrieving recursively. | |
wget -r --no-parent http://formations.telecom-bretagne.eu/syst/TPDIST/Additional-Reading/ | |
# use wget with username and password | |
wget -r --no-parent --user user_name --password my_pwd http://formations.telecom-bretagne.eu/syst/TPDIST/Additional-Reading/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymongo | |
connection = pymongo.MongoClient('localhost', 27017) | |
db = connection['db_name'] | |
collection = db['collection_name'] | |
# now we can do CRUD operations with this collection pointer | |
collection.find({}) |
NewerOlder