{"id":901,"date":"2014-04-30T18:39:01","date_gmt":"2014-04-30T10:39:01","guid":{"rendered":"http:\/\/www.yeetrack.com\/?p=901"},"modified":"2014-04-30T18:39:01","modified_gmt":"2014-04-30T10:39:01","slug":"mongodb-python%e9%a9%b1%e5%8a%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.yeetrack.com\/?p=901","title":{"rendered":"Mongodb python\u9a71\u52a8\u6559\u7a0b"},"content":{"rendered":"<p><meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\" \/><\/p>\n<h2>\u5b89\u88c5<\/h2>\n<p>\u4f7f\u7528python\u9a71\u52a8mongodb\u9700\u8981\u4e0b\u8f7d\u3001\u5b89\u88c5PyMongo\u5305<\/p>\n<ul>\n<li>Windows\u7528\u6237\uff0c\u70b9\u51fb<a href=\"http:\/\/pypi.python.org\/pypi\/pymongo\/\">\u8fd9\u91cc<\/a>\u4e0b\u8f7d\u3002<\/li>\n<li>\u4f7f\u7528pip\u5b89\u88c5\u5728linux\u5e73\u53f0\u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5\uff1a\n<p><code>pip install pymongo<\/code><\/p>\n<p>\u6307\u5b9a\u7248\u672c\uff1a<\/p>\n<p><code>pip install pymongo==2.6.3<\/code><br \/>\n\u5347\u7ea7\uff1a<\/p>\n<p>`pip install --upgrade pymongo<!--more--><\/li>\n<li>\u4f7f\u7528easy_install\u5b89\u88c5<code>easy_install pymongo<\/code><br \/>\n\u5347\u7ea7\uff1a<\/p>\n<p><code>easy_install -U pymongo<\/code><\/li>\n<\/ul>\n<h2>\u4f7f\u7528<\/h2>\n<p>\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u5c31\u53ef\u4ee5\u5728python shell\u6216\u8005python ide\u4e2d\u8fdb\u884c\u8bd5\u9a8c\uff0c\u5982\u679c\u5b89\u88c5pymongo\u6210\u529f\uff0c\u90a3\u4e48\u4e0b\u9762\u7684\u547d\u4ee4\u5e94\u8be5\u53ef\u4ee5\u5728python shell\u4e2d\u8fd0\u884c:<\/p>\n<p><code>&gt;&gt;&gt; import pymongo<\/code><\/p>\n<h3>\u901a\u8fc7MongoClient\u8fde\u63a5mongo<\/h3>\n<pre><code>    #\u8fde\u63a5locahost\u4e0a\u7684mongodb\uff0c\u7aef\u53e3\u662f\u9ed8\u8ba4\u7aef\u53e3\uff0c27017\n    from pymongo import MongoClient\n    client = MongoClient\n<\/code><\/pre>\n<p>\u4e5f\u53ef\u4ee5\u624b\u52a8\u6307\u5b9ahost\u548cport\uff1a<\/p>\n<pre><code>    client = MongoClient(\"localhost\", 27017)\n    #\u6216\u8005\n    client = MongoClient(\"mongodb:\/\/localhost:27017\/\")\n<\/code><\/pre>\n<h3>\u83b7\u53d6\u6570\u636e\u5e93\u5b9e\u4f8b<\/h3>\n<p>\u4e00\u4e2amongodb\u7684\u5b9e\u4f8b\u4e2d\uff0c\u53ef\u4ee5\u6709\u5f88\u591a\u72ec\u7acb\u6570\u636e\u5e93\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u65b9\u5f0f\u83b7\u53d6\u4e00\u4e2a\u6570\u636e\u5e93\u7684\u5b9e\u4f8b\uff1a<\/p>\n<pre><code>    db = client.mydatabase\n<\/code><\/pre>\n<p>\u5982\u679c\u4e0a\u9762\u7684\u65b9\u6cd5\u4e0d\u8d77\u4f5c\u7528\uff0c\u8bd5\u4e00\u4e0b\u4e0b\u9762\u7684\u65b9\u6cd5\uff1a<\/p>\n<pre><code>    db = client['mydatabase']\n<\/code><\/pre>\n<h3>\u83b7\u53d6\u6570\u636e\u96c6<\/h3>\n<p>\u6240\u8c13\u6570\u636e\u96c6\u5c31\u662f\u5b58\u50a8\u518dmongodb\u4e2d\u7684\u4e00\u5806\u6587\u6863\uff0c\u8fd9\u91cc\u53ef\u4ee5\u7b80\u5355\u7684\u7406\u89e3\u6210\u5173\u7cfb\u6570\u636e\u5e93\u4e2d\u7684\u8868\uff08table\uff09\uff0c\u4e0b\u9762\u7684\u65b9\u6cd5\u83b7\u53d6\u4e00\u4e2a\u6570\u636e\u96c6\uff1a<\/p>\n<pre><code>    collection = db.mycollection\n    #\u6216\u8005\n    collection = db[mycollection]\n<\/code><\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0d\u7ba1\u662f\u83b7\u53d6\u6570\u636e\u5e93\u3001\u8fd8\u662f\u6570\u636e\u96c6\u5b9e\u4f8b\uff0cmongodb\u5176\u5b9e\u6ca1\u6709\u8fdb\u884c\u4efb\u4f55\u64cd\u4f5c\uff0c\u53ea\u6709\u5f53\u771f\u6b63\u7684\u6587\u6863insert\u8fdb\u53bb\u7684\u65f6\u5019\uff0c\u624d\u4f1a\u771f\u6b63\u521b\u5efa\u6570\u636e\u5e93\u548c\u6570\u636e\u96c6\u3002<\/p>\n<h3>Documents<\/h3>\n<p>Mongodb\u4e2d\u7684\u6570\u636e\u662f\u4ee5json\u98ce\u683c\u7684\u6587\u6863\u5b58\u5728\u7684\u3002\u5728PyMongo\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528dictionaries\u4ee3\u8868documents\u3002\u4e0b\u9762\u7684\u4e00\u6bb5\u6587\u6863\uff08dictionary)\uff0c\u53ef\u4ee5\u770b\u4f5c\u662f\u4e00\u7bc7\u535a\u6587\u7684\u7b80\u4ecb\uff1a<\/p>\n<pre><code>        import datatime\n        post = {\n        \"auther\" : \"Mike\",\n        \"text\" : \"My First blog post\",\n        \"tags\" : [\"mongodb\", \"python\", \"pymongo\"],\n        \"date\" : datetime.datetime.utcnow()\n        }\n<\/code><\/pre>\n<p>Document\u53ef\u4ee5\u5305\u542bpython\u8bed\u53e5\uff0c\u5982\u4e0a\u9762\u7684datetime.datetime,\u6267\u884c\u65f6\uff0c\u4f1a\u81ea\u52a8\u8fdb\u884c\u8f6c\u5316\u3002<\/p>\n<h3>\u63d2\u5165Document<\/h3>\n<p>\u4f7f\u7528insert()\u65b9\u6cd5\u8fdb\u884c\u63d2\u5165\uff1a<\/p>\n<pre><code>    posts = db.posts\n    post_id = posts.insert(post)\n    print post_id\n<\/code><\/pre>\n<p>\u5f53\u4e00\u7bc7Document\u88ab\u63d2\u5165\u5230mongodb\u4e2d\uff0c\u5982\u679cdocument\u4e2d\u6ca1\u6709\u6307\u5b9a\"_id\",mongodb\u4f1a\u81ea\u52a8\u4e3a\u8be5document\u6dfb\u52a0\u552f\u4e00\u7684\"_id\"\u3002\u8fd9\u4e2a\"_id\"\u5728\u8be5\u6570\u636e\u96c6\u4e2d\u662f\u60df\u4e00\u7684\u3002insert()\u65b9\u6cd5\u8fd4\u56de\u503c\u5c31\u662f\u8fd9\u4e2aid\uff0c\u66f4\u591a\u5173\u4e8eid\u7684\u4fe1\u606f\uff0c\u70b9\u51fb<a href=\"http:\/\/www.mongodb.org\/display\/DOCS\/Object+IDs\">documentation on _id<\/a>\u3002<\/p>\n<p>\u63d2\u5165\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u8bed\u53e5\u5217\u51fa\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u96c6\uff1a<\/p>\n<pre><code>    db.collection_names()\n<\/code><\/pre>\n<p>\u7ed3\u679c\u5982\u4e0b\uff1a<br \/>\n[u'system.indexs', u'posts']<br \/>\nsystem.indexs \u8fd9\u4e2a\u6570\u636e\u96c6\u662fmongodb\u81ea\u5df1\u521b\u5efa\u7684\u5185\u90e8\u6570\u636e\u96c6\u3002<\/p>\n<h3>\u4f7f\u7528find_one()\u65b9\u6cd5\u83b7\u53d6\u6307\u5b9a\u7684Document<\/h3>\n<p>monbodb\u4e2d<code>find_one()<\/code>\u65b9\u6cd5\uff0c\u662f\u6700\u57fa\u672c\u7684\u67e5\u627e\u65b9\u6cd5\u3002\u8be5\u65b9\u6cd5\u8fd4\u56de\u7b26\u5408\u6761\u4ef6\u7684\u4e00\u7bc7document\uff08\u5982\u679c\u6ca1\u6709\u7b26\u5408\u6761\u4ef6\u7684\uff0c\u8fd4\u56deNone\uff09\u3002\u5f53\u6570\u636e\u96c6\u4e2d\u53ea\u6709\u4e00\u7bc7\u7b26\u5408\u6761\u4ef6\u7684\u6587\u6863\uff0c\u6216\u8005\u6211\u4eec\u53ea\u60f3\u770b\u7b2c\u4e00\u7bc7\u6587\u6863\u7684\u65f6\u5019\uff0cfind_one()\u5c31\u6709\u5f88\u6709\u7528\u4e86\u3002<\/p>\n<pre><code>    posts.find_one()\n<\/code><\/pre>\n<p>\u8fd4\u56de\u7ed3\u679c\uff1a<\/p>\n<pre><code>    {u'date': datetime.datetime(...), u'text': u'My first blog post!', u'_id': ObjectId('...'), u'author': u'Mike', u'tags': [u'mongodb', u'python', u'pymongo']}\n<\/code><\/pre>\n<h3>\u901a\u8fc7ObjectId\u68c0\u7d22<\/h3>\n<p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7_id\u6765\u8fdb\u884c\u68c0\u7d22\uff0c\u5728\u8fd9\u91cc_id\u662fObjectId:<\/p>\n<pre><code>    posts.find_one({\"_id\": post_id})\n<\/code><\/pre>\n<p>\u7ed3\u679c\uff1a<\/p>\n<pre><code>    {u'date': datetime.datetime(...), u'text': u'My first blog post!', u'_id': ObjectId('...'), u'author': u'Mike', u'tags': [u'mongodb', u'python', u'pymongo']}\n<\/code><\/pre>\n<p>\u518dweb\u5e94\u7528\u4e2d\uff0c\u6bd4\u8f83\u5e38\u89c1\u7684\u5c31\u662f\u901a\u8fc7url\u4e2d\u7684id\uff0c\u6765\u67e5\u8be2\u76f8\u5e94\u7684document\u3002\u901a\u5e38\u4f20\u8fc7\u6765\u7684id\u662fstring\u7c7b\u578b\u7684\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u8f6c\u5316\u4e3aObjectId\u7c7b\u578b\u3002<\/p>\n<pre><code>    from bson.objectid import ObjectId\n\n    # web\u9875\u9762\u4e2d\uff0c\u5c06post_id\u5b57\u7b26\u4e32\u4f20\u9012\u8fc7\u6765\n    def get(post_id):\n            # Convert from string to ObjectId:\n            document = client.db.collection.find_one({'_id': ObjectId(post_id)})\n<\/code><\/pre>\n<h3>\u5173\u4e8eUnicode\u5b57\u7b26\u4e32<\/h3>\n<p>\u4f60\u53ef\u80fd\u53d1\u73b0\u6211\u4eec\u5b58\u5230mongodb\u4e2d\u7684\u6587\u6863\uff0c\u548c\u6211\u4eec\u67e5\u8be2\u51fa\u6765\u7684\u6587\u6863\u4e0d\u592a\u4e00\u6837\uff08u'Mike'\u548c\u2018Mike')\u3002<\/p>\n<p>MongoDB\u4ee5BSON\u7684\u683c\u5f0f\u5b58\u50a8\u6570\u636e\u3002BSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u662fUTF-8\u7f16\u7801\u7684\uff0c\u56e0\u6b64PyMongo\u5fc5\u987b\u4fdd\u8bc1\u5b83\u5b58\u50a8\u7684\u5b57\u7b26\u4e32\u90fd\u662futf-8\u7f16\u7801\u7684\u3002Regular strings (&lt;type \u2018str\u2019&gt;) are validated and stored unaltered. Unicode\u5b57\u7b26\u4e32\u9996\u5148\u88abUTF-8\u7f16\u7801\u3002PyMongo\u5728\u8f93\u51fa\u65f6\u4f7f\u7528u'Mike'\u4ee3\u66ff'Mike'\uff0c\u5c31\u662fPyMongo\u5bf9\u6bcf\u4e2aBSON\u5b57\u7b26\u4e32\u8fdb\u884c\u89e3\u7801\uff0c\u89e3\u6210python\u7684unicode\u5b57\u7b26\u4e32\u3002<a href=\"http:\/\/docs.python.org\/howto\/unicode.html\">\u66f4\u591a<\/a><\/p>\n<h3>\u6279\u91cfInsert<\/h3>\n<p>\u5982\u679c\u8981\u63d2\u5165\u5f88\u591a\u6761\u6570\u636e\uff0c\u4e00\u6761\u6761\u63d2\u5165\u5c31\u663e\u5f97\u5f88\u9ebb\u70e6\u4e86\u3002PyMongo\u652f\u6301\u6279\u91cf\u63d2\u5165\u3002\u4e0b\u9762\u662f\u4f8b\u5b50\uff1a<\/p>\n<pre><code>    new_posts = [\n        {   \"author\": \"Mike\",\n            \"text\": \"Another post!\",\n            \"tags\": [\"bulk\", \"insert\"],\n            \"date\": datetime.datetime(2009, 11, 12, 11, 14)},\n        {\n            \"author\": \"Eliot\",\n            \"title\": \"MongoDB is fun\",\n            \"text\": \"and pretty easy too!\",\n            \"date\": datetime.datetime(2009, 11, 10, 10, 45)\n        }]\n\n    posts.insert(new_posts)\n<\/code><\/pre>\n<p>\u7ed3\u679c\u4f1a\u6253\u5370\u51fa\u4e24\u4e2a_id\u3002<\/p>\n<p>\u4f8b\u5b50\u603b\u7ed3\uff1a<\/p>\n<p>+ \u8fd9\u4e2ainsert()\u65b9\u6cd5\u8fd4\u56de\u4e24\u4e2aObjectId\u5bf9\u8c61\uff0c\u6bcf\u4e2a\u4ee3\u8868\u4e00\u4e2a\u63d2\u5165\u7684Document\u3002<br \/>\n+ new_post[1] \u6ca1\u6709tags\u5b57\u6bb5\uff0c\u589e\u52a0\u4e86title\u5b57\u6bb5\uff0c\u8fd9\u6837\u505a\u662fOK\u7684\u3002\u8fd9\u5c31\u662fmongodb schema-free\u7684\u4f53\u73b0\u3002<\/p>\n<h3>\u68c0\u7d22\u591a\u4e2aDocument<\/h3>\n<p>\u5982\u679c\u6211\u4eec\u60f3\u540c\u65f6\u68c0\u7d22\u591a\u6761\u6570\u636e\uff0c\u9700\u8981\u7528\u5230find()\u65b9\u6cd5\u3002find()\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a<a href=\"http:\/\/api.mongodb.org\/python\/current\/api\/pymongo\/cursor.html#pymongo.cursor.Cursor\">Cursor<\/a>\u5b9e\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u4e2aCursor\u6765\u904d\u5386\u67e5\u8be2\u5230\u7684Documents\u3002\u5982\u4e0b\u9762\u7684\u4f8b\u5b50\uff1a<\/p>\n<pre><code>        for post in posts.find():\n            print post\n<\/code><\/pre>\n<p>\u7c7b\u4f3c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<pre><code>    {u'date': datetime.datetime(...), u'text': u'My first blog post!', u'_id': ObjectId('...'), u'author': u'Mike', u'tags': [u'mongodb', u'python', u'pymongo']}\n    {u'date': datetime.datetime(2009, 11, 12, 11, 14), u'text': u'Another post!', u'_id': ObjectId('...'), u'author': u'Mike', u'tags': [u'bulk', u'insert']}\n    {u'date': datetime.datetime(2009, 11, 10, 10, 45), u'text': u'and pretty easy too!', u'_id': ObjectId('...'), u'author': u'Eliot', u'title': u'MongoDB is fun'}\n<\/code><\/pre>\n<p>\u4e3afind()\u65b9\u6cd5\uff0c\u6dfb\u52a0\u7ea6\u675f\u6761\u4ef6\uff1a<\/p>\n<pre><code>    for post in posts.find({\"author\": \"Mike\"}):\n        print post\n<\/code><\/pre>\n<p>\u7c7b\u4f3c\u7ed3\u679c\uff1a<\/p>\n<pre><code>    {u'date': datetime.datetime(...), u'text': u'My first blog post!', u'_id': ObjectId('...'), u'author': u'Mike', u'tags': [u'mongodb', u'python', u'pymongo']}\n    {u'date': datetime.datetime(2009, 11, 12, 11, 14), u'text': u'Another post!', u'_id': ObjectId('...'), u'author': u'Mike', u'tags': [u'bulk', u'insert']}\n<\/code><\/pre>\n<h3>Counting<\/h3>\n<p>\u5982\u679c\u6211\u4eec\u9879\u67e5\u770b\u67d0\u4e2a\u6761\u4ef6\u4e0b\u7ed3\u679c\u7684\u4e2a\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528count()\u65b9\u6cd5\uff0c\u8fd9\u5c31\u7701\u6389\u4e86\u5168\u5c40\u68c0\u7d22\u3002<\/p>\n<pre><code>    posts.count()\n    post.find({\"author\" : \"Mike\"}).count()\n<\/code><\/pre>\n<h3>\u8303\u56f4\u68c0\u7d22<\/h3>\n<p>Mongodb\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7c7b\u578b\u7684<a href=\"http:\/\/www.mongodb.org\/display\/DOCS\/Advanced+Queries\">\u9ad8\u7ea7\u67e5\u8be2<\/a>, \u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u68c0\u7d22\u51fa\u67d0\u4e2a\u65f6\u95f4\u70b9\u524d\u53d1\u8868\u7684\u535a\u6587\uff0c\u5e76\u4e14\u6309\u7167\u4f5c\u8005\u540d\u5b57\u6392\u5e8f\uff1a<\/p>\n<pre><code>    d = datetime.datetime(2009, 11, 12, 12)\n    for post in posts.find({\"date\": {\"$lt\": d}}).sort(\"author\"):\n        print post\n<\/code><\/pre>\n<p>\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<pre><code>    {u'date': datetime.datetime(2009, 11, 10, 10, 45), u'text': u'and pretty easy too!', u'_id': ObjectId('...'), u'author': u'Eliot', u'title': u'MongoDB is fun'}\n    {u'date': datetime.datetime(2009, 11, 12, 11, 14), u'text': u'Another post!', u'_id': ObjectId('...'), u'author': u'Mike', u'tags': [u'bulk', u'insert']}\n<\/code><\/pre>\n<h3>\u7d22\u5f15<\/h3>\n<p>\u4e3a\u4e86\u8ba9\u4e0a\u9762\u7684\u90a3\u4e2a\u67e5\u8be2\u53d8\u5f97\u66f4\u5feb\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\"date\"\u548c\"author\"\u5b57\u6bb5\u4e0a\u52a0\u4e0a\u590d\u5408\u7d22\u5f15\u3002<\/p>\n<pre><code>    &gt;&gt;&gt; from pymongo import ASCENDING, DESCENDING\n    &gt;&gt;&gt; posts.create_index([(\"date\", DESCENDING), (\"author\", ASCENDING)])\n    u'date_-1_author_1'\n    &gt;&gt;&gt; posts.find({\"date\": {\"$lt\": d}}).sort(\"author\").explain()[\"cursor\"]\n    u'BtreeCursor date_-1_author_1'\n    &gt;&gt;&gt; posts.find({\"date\": {\"$lt\": d}}).sort(\"author\").explain()[\"nscanned\"]\n    2\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u60c5\u51b5\uff0c\u67e5\u8be2\u8bed\u53e5\u4f1a\u4f7f\u7528BtreeCuosor\uff08the index)\uff0c\u67e5\u8be2\u51fa\u4e86\u4e24\u6761\u7ed3\u679c\u3002\u66f4\u591a\uff0c\u70b9\u51fb<a href=\"http:\/\/www.mongodb.org\/display\/DOCS\/Indexes\">\u6b64\u5904<\/a>\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5 \u4f7f\u7528python\u9a71\u52a8mongodb\u9700\u8981\u4e0b\u8f7d\u3001\u5b89\u88c5PyMongo\u5305 Windows\u7528\u6237\uff0c\u70b9\u51fb\u8fd9\u91cc\u4e0b\u8f7d\u3002 \u4f7f\u7528pip\u5b89\u88c5\u5728linux\u5e73\u53f0\u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5\uff1a pip install pymongo &#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[33],"tags":[47,46,7,5],"class_list":["post-901","post","type-post","status-publish","format-standard","hentry","category-coding","tag-mongodb","tag-python","tag-7","tag-5"],"views":4921,"_links":{"self":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=901"}],"version-history":[{"count":1,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/901\/revisions"}],"predecessor-version":[{"id":902,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/901\/revisions\/902"}],"wp:attachment":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}