{"id":86,"date":"2016-10-14T20:38:23","date_gmt":"2016-10-14T20:38:23","guid":{"rendered":"https:\/\/blog.diggernaut.com\/?p=86"},"modified":"2019-01-12T20:34:58","modified_gmt":"2019-01-12T20:34:58","slug":"diggernaut-can-run-js-routines","status":"publish","type":"post","link":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/","title":{"rendered":"Diggernaut can run JS routines"},"content":{"rendered":"<h3>How to execute JavaScript snippet in the middle of the scraping process?<\/h3>\n<p>Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using &#8220;eval&#8221; command.<\/p>\n<p>Let imagine that we need to get the current time in seconds since Epoch and use it in some URL.<br>\nThere are a few ways to do it:<\/p>\n<h4>Way 1:<\/h4>\n<p>Let&#8217;s keep URL value in the variable, evaluate JS code and return a result of JS code execution to the register, to do it you need to use a closure, and your closure should return value.<\/p>\n<pre class=\"language-yaml line-numbers\"><code class=\"language-yaml\">---\n        ...\n        ...\n    - find:\n        path: a\n        do:\n        - parse:\n            attr: href\n        - variable_set: link\n        - eval:\n            routine: js\n            body: &quot;(function (){return new Date().getTime();})();&quot;\n        - variable_prepend:\n            field: link\n            joinby: &quot;?time=&quot;\n        # you will have following value in the register http:\/\/somelink.com\/?time=1476403635606\n        - walk:\n            to: value\n            do:\n            ...\n            ...\n            ...<\/code><\/pre>\n<h4>Way 2:<\/h4>\n<p>Another way to do it is to write a value of some JS variable to your digger variable. You can use argument &#8220;assign&#8221; for it.<\/p>\n<pre class=\"language-yaml line-numbers\"><code class=\"language-yaml\">---\n        ...\n        ...\n    - find:\n        path: a\n        do:\n        - parse:\n            attr: href\n        - eval:\n            routine: js\n            body: &quot;var jstime = new Date().getTime();&quot;\n            assign:\n                time: jstime\n        - variable_append:\n            field: time\n            joinby: &quot;?time=&quot;\n        # you will have following value in the register http:\/\/somelink.com\/?time=1476403635606\n        - walk:\n            to: value\n            do:\n            ...\n            ...\n            ...<\/code><\/pre>\n<h4>Way 3:<\/h4>\n<p>The third way to do it is to pass base URL to JS routine as variable, and then your closure can return complete URL.<\/p>\n<pre class=\"language-yaml line-numbers\"><code class=\"language-yaml\">---\n        ...\n        ...\n    - find:\n        path: a\n        do:\n        - parse:\n            attr: href\n        - variable_set: link\n        - eval:\n            routine: js\n            body: &quot;(function (){return &#039;&#039; + &#039;?time=&#039; + new Date().getTime();})();&quot;\n        # you will have following value in the register http:\/\/somelink.com\/?time=1476403635606\n        - walk:\n            to: value\n            do:\n            ...\n            ...\n            ...<\/code><\/pre>\n<p>Please note that if you are using digger&#8217;s variables in JS routine, you need to use quotes, because they become literal values before engine evaluate JS routine.<br>\nYou can, of course, create more complex functions and even run scripts you extract from script tag on the page, but you should understand that <strong><em>it does not work with DOM<\/em><\/strong> and your <strong><em>function should not run too long<\/em><\/strong>.<\/p>\n<p>If you do too many recursive calls or your JS code runs too long you shall see the following errors:<\/p>\n<pre><code class=\"language-js\">{&quot;level&quot;:&quot;error&quot;,&quot;msg&quot;:&quot;Eval error: RangeError: Maximum call stack size exceeded&quot;,&quot;time&quot;:&quot;2016-10-14T06:12:12.2624413+03:00&quot;}\n{&quot;level&quot;:&quot;error&quot;,&quot;msg&quot;:&quot;Eval error: Code execution time exceeded limits. Stopping after: 10.0004sec&quot;,&quot;time&quot;:&quot;2016-10-14T06:16:22.9742751+03:00&quot;}\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using &#8220;eval&#8221; [&hellip;]<\/p>","protected":false},"author":5,"featured_media":87,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learning-meta-language","category-web-scraping"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using &quot;eval&quot;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Evgeniy Solomanidin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Diggernaut - Leave the work to the robots\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Diggernaut can run JS routines - Diggernaut\" \/>\n\t\t<meta property=\"og:description\" content=\"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using &quot;eval&quot;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-10-14T20:38:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-01-12T20:34:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Diggernaut can run JS routines - Diggernaut\" \/>\n\t\t<meta name=\"twitter:description\" content=\"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using &quot;eval&quot;\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#blogposting\",\"name\":\"Diggernaut can run JS routines - Diggernaut\",\"headline\":\"Diggernaut can run JS routines\",\"author\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/author\\\/evgeniy\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/js.jpg\",\"width\":1280,\"height\":500},\"datePublished\":\"2016-10-14T20:38:23+00:00\",\"dateModified\":\"2019-01-12T20:34:58+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#webpage\"},\"articleSection\":\"Learning meta-language, Web scraping\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/category\\\/web-scraping\\\/#listItem\",\"name\":\"Web scraping\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/category\\\/web-scraping\\\/#listItem\",\"position\":2,\"name\":\"Web scraping\",\"item\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/category\\\/web-scraping\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#listItem\",\"name\":\"Diggernaut can run JS routines\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#listItem\",\"position\":3,\"name\":\"Diggernaut can run JS routines\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/category\\\/web-scraping\\\/#listItem\",\"name\":\"Web scraping\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/#organization\",\"name\":\"Diggernaut\",\"description\":\"Leave the work to the robots\",\"url\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/author\\\/evgeniy\\\/#author\",\"url\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/author\\\/evgeniy\\\/\",\"name\":\"Evgeniy Solomanidin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/031410c16cbcda69336fe626afbe419707de237e72243295f724dd5f904dab87?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Evgeniy Solomanidin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#webpage\",\"url\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/\",\"name\":\"Diggernaut can run JS routines - Diggernaut\",\"description\":\"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using \\\"eval\\\"\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/author\\\/evgeniy\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/author\\\/evgeniy\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/js.jpg\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#mainImage\",\"width\":1280,\"height\":500},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/diggernaut-can-run-js-routines\\\/#mainImage\"},\"datePublished\":\"2016-10-14T20:38:23+00:00\",\"dateModified\":\"2019-01-12T20:34:58+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/\",\"name\":\"Diggernaut\",\"description\":\"Leave the work to the robots\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.diggernaut.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Diggernaut can run JS routines - Diggernaut","description":"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using \"eval\"","canonical_url":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#blogposting","name":"Diggernaut can run JS routines - Diggernaut","headline":"Diggernaut can run JS routines","author":{"@id":"https:\/\/www.diggernaut.com\/blog\/author\/evgeniy\/#author"},"publisher":{"@id":"https:\/\/www.diggernaut.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.diggernaut.com\/blog\/wp-content\/uploads\/2016\/10\/js.jpg","width":1280,"height":500},"datePublished":"2016-10-14T20:38:23+00:00","dateModified":"2019-01-12T20:34:58+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#webpage"},"isPartOf":{"@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#webpage"},"articleSection":"Learning meta-language, Web scraping"},{"@type":"BreadcrumbList","@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.diggernaut.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.diggernaut.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.diggernaut.com\/blog\/category\/web-scraping\/#listItem","name":"Web scraping"}},{"@type":"ListItem","@id":"https:\/\/www.diggernaut.com\/blog\/category\/web-scraping\/#listItem","position":2,"name":"Web scraping","item":"https:\/\/www.diggernaut.com\/blog\/category\/web-scraping\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#listItem","name":"Diggernaut can run JS routines"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.diggernaut.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#listItem","position":3,"name":"Diggernaut can run JS routines","previousItem":{"@type":"ListItem","@id":"https:\/\/www.diggernaut.com\/blog\/category\/web-scraping\/#listItem","name":"Web scraping"}}]},{"@type":"Organization","@id":"https:\/\/www.diggernaut.com\/blog\/#organization","name":"Diggernaut","description":"Leave the work to the robots","url":"https:\/\/www.diggernaut.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.diggernaut.com\/blog\/author\/evgeniy\/#author","url":"https:\/\/www.diggernaut.com\/blog\/author\/evgeniy\/","name":"Evgeniy Solomanidin","image":{"@type":"ImageObject","@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/031410c16cbcda69336fe626afbe419707de237e72243295f724dd5f904dab87?s=96&d=mm&r=g","width":96,"height":96,"caption":"Evgeniy Solomanidin"}},{"@type":"WebPage","@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#webpage","url":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/","name":"Diggernaut can run JS routines - Diggernaut","description":"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using \"eval\"","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.diggernaut.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#breadcrumblist"},"author":{"@id":"https:\/\/www.diggernaut.com\/blog\/author\/evgeniy\/#author"},"creator":{"@id":"https:\/\/www.diggernaut.com\/blog\/author\/evgeniy\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.diggernaut.com\/blog\/wp-content\/uploads\/2016\/10\/js.jpg","@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#mainImage","width":1280,"height":500},"primaryImageOfPage":{"@id":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/#mainImage"},"datePublished":"2016-10-14T20:38:23+00:00","dateModified":"2019-01-12T20:34:58+00:00"},{"@type":"WebSite","@id":"https:\/\/www.diggernaut.com\/blog\/#website","url":"https:\/\/www.diggernaut.com\/blog\/","name":"Diggernaut","description":"Leave the work to the robots","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.diggernaut.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Diggernaut - Leave the work to the robots","og:type":"article","og:title":"Diggernaut can run JS routines - Diggernaut","og:description":"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using &quot;eval&quot;","og:url":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/","article:published_time":"2016-10-14T20:38:23+00:00","article:modified_time":"2019-01-12T20:34:58+00:00","twitter:card":"summary_large_image","twitter:title":"Diggernaut can run JS routines - Diggernaut","twitter:description":"How to execute JavaScript snippet in the middle of the scraping process? Sometimes, when you scrape something, you may need to calculate some parameter to make a request for some page. There may be a lot of different cases when you need to do some calc, but most of them can be solved using &quot;eval&quot;"},"aioseo_meta_data":{"post_id":"86","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"none","tabs":null,"priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"created":"2024-01-19 10:12:09","updated":"2026-10-26 02:52:33","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"og_image_url":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.diggernaut.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.diggernaut.com\/blog\/category\/web-scraping\/\" title=\"Web scraping\">Web scraping<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDiggernaut can run JS routines\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.diggernaut.com\/blog\/"},{"label":"Web scraping","link":"https:\/\/www.diggernaut.com\/blog\/category\/web-scraping\/"},{"label":"Diggernaut can run JS routines","link":"https:\/\/www.diggernaut.com\/blog\/diggernaut-can-run-js-routines\/"}],"_links":{"self":[{"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":3,"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":680,"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/posts\/86\/revisions\/680"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/media\/87"}],"wp:attachment":[{"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.diggernaut.com\/blog\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}