{"id":23628,"date":"2023-11-13T16:28:17","date_gmt":"2023-11-13T15:28:17","guid":{"rendered":"https:\/\/www.zylstra.org\/blog\/?p=23628"},"modified":"2023-11-13T16:56:15","modified_gmt":"2023-11-13T15:56:15","slug":"search-your-flickr-archive-by-date","status":"publish","type":"post","link":"https:\/\/www.zylstra.org\/blog\/2023\/11\/search-your-flickr-archive-by-date\/","title":{"rendered":"Search Your Flickr Archive By Date"},"content":{"rendered":"<p>I have lots of images in my Flickr account, over 35k uploaded from April 2005 until now. Searching them by date isn&#8217;t made easy: you first have to do a search and then in the advanced filters set a date range. The resulting search URL however is straightforward, and contains my user id, and both the start and end date to search in unix time. <\/p>\n<p>To make it easy for myself I made a tiny tool that has a locally hosted webform where I enter a start and end date to search, and turns that into the right search URL which it shows as clickable hyper link. Meaning with two clicks I have the images I searched for by date in front of me (if they exist).<\/p>\n<p>The small piece of code is shown below (save it as a .php file, insert your Flickr user ID, and run it on a local webserver on your laptop, add its URL to your bookmark bar in your browser)<\/p>\n<p><code><br \/>\n&lt;?php<br \/>\n\/* form om te zoeken in Flickr *\/<br \/>\n$base=&quot;https:\/\/www.flickr.com\/search\/?user_id=YOURUSERID&amp;sort=date-taken-desc&amp;min_taken_date=&quot;;<br \/>\nif ($_POST) {<br \/>\n$dvan = $_POST[&#039;van&#039;];<br \/>\n$dtot = $_POST[&#039;tot&#039;];<br \/>\n$uvan = strtotime($dvan);<br \/>\n$utot = strtotime($dtot);<br \/>\n$searchurl=$base.$uvan.&quot;&amp;max_taken_date=&quot;.$utot.&quot;&amp;view_all=1&quot;; echo &quot;&lt;a href=&quot;.$searchurl.&quot;&gt;&quot;.$searchurl.&quot;&lt;\/a&gt;&quot;;<br \/>\n\/* begin form *\/<br \/>\n}<br \/>\n?&gt;<br \/>\n&lt;form name=&quot;input_form&quot; method=&quot;POST&quot; action=&quot;&lt;?php echo $_SERVER[&#039;PHP_SELF&#039;] ?&gt;&quot;&gt;<br \/>\nSearch Flickr (date format yyyy-mm-dd)&lt;br\/&gt;<br \/>\nFrom &lt;input type=&#039;text&#039; size=&#039;20&#039; name=&#039;van&#039;&gt;&lt;br\/&gt;<br \/>\nTo &lt;input type=&#039;text&#039; size=&#039;20&#039; name=&#039;tot&#039;&gt;&lt;br\/&gt; &lt;br\/&gt;<br \/>\n&lt;input type=&quot;submit&quot; name=&quot;submitButton&quot; value=&quot;Zoek&quot;&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Made small and simple tool to search my #Flickr archive by date. A local webform made in php takes a begin and end date, then constructs the search URL. It lives in the bookmark bar in my browser.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[487,2155],"tags":[173],"class_list":["post-23628","post","type-post","status-publish","format-standard","category-timeline","category-personaltools","tag-flickr","h-entry","hentry"],"archive_meta":{"categories":["Day to Day","Personal tools"],"tags":["flickr"],"page_categories":[],"format":null,"kind":null,"ref":null},"_links":{"self":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/23628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/comments?post=23628"}],"version-history":[{"count":10,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/23628\/revisions"}],"predecessor-version":[{"id":23637,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/23628\/revisions\/23637"}],"wp:attachment":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/media?parent=23628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/categories?post=23628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/tags?post=23628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}