{"id":1695,"date":"2016-01-03T15:18:47","date_gmt":"2016-01-03T13:18:47","guid":{"rendered":"https:\/\/www.robinglauser.ch\/blog\/?p=1695"},"modified":"2016-01-07T12:31:07","modified_gmt":"2016-01-07T10:31:07","slug":"how-to-write-a-simple-webscrapper-with-php","status":"publish","type":"post","link":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/","title":{"rendered":"How to write a simple webscraper with PHP"},"content":{"rendered":"<p>In this article I will help you build a simple webscraper in PHP.\u00a0For the base we will use the php library\u00a0<a href=\"https:\/\/github.com\/FriendsOfPHP\/Goutte\">fabpot\/goutte<\/a>.<\/p>\n<p>To get started with our project we will install the dependency manager composer. You can find out how to install composer on their official website: <a href=\"https:\/\/getcomposer.org\/\">https:\/\/getcomposer.org\/<\/a><\/p>\n<p>After the installation you should be able to use composer on the command line.<\/p>\n<p>Now open a terminal in the directory of your project. To require the dependencies type in the following commands.<\/p>\n<pre>composer require fabpot\/goutte<\/pre>\n<p>This will create the files &#8220;composer.json&#8221;, &#8220;composer.lock&#8221; and a directory named &#8220;vendor&#8221;.<\/p>\n<div class=\"alert alert-info\">If you want to know more composer: <a href=\"https:\/\/blog.engineyard.com\/2014\/composer-its-all-about-the-lock-file\">Composer: It\u2019s All About the Lock File<\/a><\/div>\n<p>Now that we have the dependencies installed we create a file named index.php<\/p>\n<pre>&lt;?php\r\n\r\n\/*\r\n * This loads the composer auto loader so we can use \r\n * classes without having to require them manually first.\r\n *\/\r\nrequire __DIR__ . '\/vendor\/autoload.php';<\/pre>\n<p>By using Goutte we can now start building our webscraper. For this example we try to get all the links from the\u00a0<a href=\"https:\/\/news.ycombinator.com\/\">Hacker News<\/a> front page.<\/p>\n<pre>&lt;?php\r\n\r\n\/*\r\n * This loads the composer auto loader so we can use\r\n * classes without having to require them manually first.\r\n *\/\r\nrequire __DIR__ . '\/vendor\/autoload.php';\r\n\r\nuse Goutte\\Client;\r\nuse Symfony\\Component\\DomCrawler\\Crawler;\r\n\r\n$client = new Client();\r\n$crawler = $client-&gt;request('GET', 'https:\/\/news.ycombinator.com\/');\r\n\r\n\r\nforeach ($crawler-&gt;filter('.athing td.title &gt; a') as $article){\r\n \/**\r\n * @var $article DOMElement\r\n *\/\r\n echo 'Title: '.$article-&gt;textContent.\"\\n\";\r\n echo 'Link: '. $article-&gt;getAttribute('href').\"\\n\\n\";\r\n}<\/pre>\n<p>Let&#8217;s go step\u00a0by step through the code.<\/p>\n<pre>use Goutte\\Client;\r\nuse Symfony\\Component\\DomCrawler\\Crawler;<\/pre>\n<p>With those lines we import the classes. With this we can use them without specifying the whole namespace in the code.<\/p>\n<div class=\"alert alert-info\">You can learn more about namespace in\u00a0the official php documentation:\u00a0<a href=\"http:\/\/php.net\/manual\/en\/language.namespaces.basics.php\">Using namespaces: Basics<\/a><\/div>\n<pre>$client = new Client();\r\n$crawler = $client-&gt;request('GET', 'https:\/\/news.ycombinator.com\/');<\/pre>\n<p>Next we create a new instance of the Goutte client. Then we use the request method to make a HTTP GET\u00a0request to the Hacker News front page.<\/p>\n<div class=\"alert alert-info\">You can find more usage examples on the Github repository of Goutte:\u00a0<a href=\"https:\/\/github.com\/FriendsOfPHP\/Goutte#usage\">FriendsOfPHP\/Goutte<\/a><\/div>\n<p>This returns a crawler with the source code of the response. We can use this to filter and search the html response.<\/p>\n<pre>foreach ($crawler-&gt;filter('.athing td.title &gt; a') as $article){<\/pre>\n<p>We now filter the response html for all submitted articles by using a CSS selector.<\/p>\n<div class=\"alert alert-info\">For more examples how to use the Crawler:\u00a0<a href=\"http:\/\/symfony.com\/doc\/current\/components\/dom_crawler.html?any\">The DomCrawler Component<\/a><\/div>\n<p>The result is a Iterator which we can use in a foreach construct.<\/p>\n<pre>\u00a0 \/**\r\n * @var $article DOMElement\r\n *\/\r\n echo 'Title: '.$article-&gt;textContent.\"\\n\";\r\n echo 'Link: '. $article-&gt;getAttribute('href').\"\\n\\n\";\r\n}<\/pre>\n<p>Foreach article we filter we can now output the title and the link.<\/p>\n<p>To use the webscraper we\u00a0can run it over the command line.<\/p>\n<pre>php index.php<\/pre>\n<p>We\u00a0should now see a neat list with all the links from the Hacker News front page. Now you should be able to create a simple webscraper for any other service on the web.<\/p>\n<p>If you have any problems following this tutorial, please leave a comment and I&#8217;ll respond as soon as I can.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">In this article I will help you build a simple webscraper in PHP.\u00a0For the base we will use the php library\u00a0fabpot\/goutte. To get started with our project we will install the dependency manager composer. You can find out how to install composer on their official website: https:\/\/getcomposer.org\/ After the installation you should be able to use composer on the command &#8230; <a class=\"read-more\" href=\"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":1705,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[45],"tags":[173,178,174,56,177,175],"class_list":["post-1695","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-composer","tag-filter","tag-goutte","tag-php","tag-search","tag-web"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to write a simple webscraper with PHP - Robin Glauser<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to write a simple webscraper with PHP - Robin Glauser\" \/>\n<meta property=\"og:description\" content=\"In this article I will help you build a simple webscraper in PHP.\u00a0For the base we will use the php library\u00a0fabpot\/goutte. To get started with our project we will install the dependency manager composer. You can find out how to install composer on their official website: https:\/\/getcomposer.org\/ After the installation you should be able to use composer on the command ... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Robin Glauser\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-03T13:18:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-01-07T10:31:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2016\/01\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Robin Glauser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:site\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robin Glauser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/\"},\"author\":{\"name\":\"Robin Glauser\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"headline\":\"How to write a simple webscraper with PHP\",\"datePublished\":\"2016-01-03T13:18:47+00:00\",\"dateModified\":\"2016-01-07T10:31:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/\"},\"wordCount\":390,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/01\\\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg\",\"keywords\":[\"composer\",\"filter\",\"goutte\",\"php\",\"search\u00a8\",\"web\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/\",\"name\":\"How to write a simple webscraper with PHP - Robin Glauser\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/01\\\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg\",\"datePublished\":\"2016-01-03T13:18:47+00:00\",\"dateModified\":\"2016-01-07T10:31:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/01\\\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg\",\"contentUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/01\\\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg\",\"width\":1280,\"height\":550},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2016\\\/01\\\/03\\\/how-to-write-a-simple-webscrapper-with-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to write a simple webscraper with PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\",\"name\":\"Robin Glauser\",\"description\":\"My Blog about Development, Design and my random thoughts.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\",\"name\":\"Robin Glauser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"contentUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"width\":800,\"height\":530,\"caption\":\"Robin Glauser\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\"},\"description\":\"I'm a web developer.\",\"sameAs\":[\"https:\\\/\\\/www.robinglauser.ch\",\"https:\\\/\\\/www.instagram.com\\\/robinglauser\\\/\",\"https:\\\/\\\/x.com\\\/robinglauser\"],\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/author\\\/robin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to write a simple webscraper with PHP - Robin Glauser","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/","og_locale":"en_US","og_type":"article","og_title":"How to write a simple webscraper with PHP - Robin Glauser","og_description":"In this article I will help you build a simple webscraper in PHP.\u00a0For the base we will use the php library\u00a0fabpot\/goutte. To get started with our project we will install the dependency manager composer. You can find out how to install composer on their official website: https:\/\/getcomposer.org\/ After the installation you should be able to use composer on the command ... Read More","og_url":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/","og_site_name":"Robin Glauser","article_published_time":"2016-01-03T13:18:47+00:00","article_modified_time":"2016-01-07T10:31:07+00:00","og_image":[{"width":1280,"height":550,"url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2016\/01\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg","type":"image\/jpeg"}],"author":"Robin Glauser","twitter_card":"summary_large_image","twitter_creator":"@robinglauser","twitter_site":"@robinglauser","twitter_misc":{"Written by":"Robin Glauser","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#article","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/"},"author":{"name":"Robin Glauser","@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"headline":"How to write a simple webscraper with PHP","datePublished":"2016-01-03T13:18:47+00:00","dateModified":"2016-01-07T10:31:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/"},"wordCount":390,"commentCount":0,"publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2016\/01\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg","keywords":["composer","filter","goutte","php","search\u00a8","web"],"articleSection":["Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/","url":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/","name":"How to write a simple webscraper with PHP - Robin Glauser","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#primaryimage"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2016\/01\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg","datePublished":"2016-01-03T13:18:47+00:00","dateModified":"2016-01-07T10:31:07+00:00","breadcrumb":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#primaryimage","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2016\/01\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2016\/01\/photo-1447877015176-3099cb49cd6a-e1451826792353.jpg","width":1280,"height":550},{"@type":"BreadcrumbList","@id":"https:\/\/www.robinglauser.ch\/blog\/2016\/01\/03\/how-to-write-a-simple-webscrapper-with-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robinglauser.ch\/blog\/"},{"@type":"ListItem","position":2,"name":"How to write a simple webscraper with PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.robinglauser.ch\/blog\/#website","url":"https:\/\/www.robinglauser.ch\/blog\/","name":"Robin Glauser","description":"My Blog about Development, Design and my random thoughts.","publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19","name":"Robin Glauser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","width":800,"height":530,"caption":"Robin Glauser"},"logo":{"@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg"},"description":"I'm a web developer.","sameAs":["https:\/\/www.robinglauser.ch","https:\/\/www.instagram.com\/robinglauser\/","https:\/\/x.com\/robinglauser"],"url":"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/1695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/comments?post=1695"}],"version-history":[{"count":9,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/1695\/revisions"}],"predecessor-version":[{"id":1707,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/1695\/revisions\/1707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media\/1705"}],"wp:attachment":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media?parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/categories?post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/tags?post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}