-
Notifications
You must be signed in to change notification settings - Fork 0
/
2018-10-04-visualize-google-search-results-from-clojure-repl.html
57 lines (57 loc) · 3.11 KB
/
2018-10-04-visualize-google-search-results-from-clojure-repl.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="alternate"
type="application/rss+xml"
href="https://www.birkey.co/rss.xml"
title="RSS feed for https://www.birkey.co/">
<title>Visualize Google search results from Clojure REPL</title>
<meta name="author" content="Kasim Tuman">
<meta name="referrer" content="no-referrer">
<link href= "static/style.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="static/favicon.ico">
<link rel="apple-touch-icon-precomposed" href="static/birkey_logo.png">
<link rel="msapplication-TitleImage" href="static/birkey_logo.png">
<link rel="msapplication-TitleColor" href="#0141ff">
<link rel="alternate" type="application/rss+xml" title="RSS Feed for birkey.co" href="/rss.xml"
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta name="viewport" content="initial-scale=1,width=device-width,minimum-scale=1"></head>
<body>
<div id="preamble" class="status"><br><center>
<div style="display: inline-block; vertical-align:middle;">
<a href="https://www.birkey.co/index.html" style="text-decoration: none;"><b>BIRKEY CONSULTING</b><br>
</a><hr/><div style="text-align: justify;display: inline-block; width: 100%;">
<a class="title" href="https://www.birkey.co/resume/resume.html">ABOUT</a> <a class="title" href="https://github.com/oneness">GITHUB</a> <a class="title" href="https://www.birkey.co/rss.xml">RSS</a> <a class="title" href="https://www.birkey.co/archive.html">ARCHIVE</a> <a class="title" href="https://paypal.me/ktuman">DONATE</a></div></div>
</center><br><br>
<div style="margin-bottom: 3ch;text-transform: none;"></div></div>
<div id="content">
<div class="post-date">04 Oct 2018</div><h1 class="post-title"><a href="https://www.birkey.co/2018-10-04-visualize-google-search-results-from-clojure-repl.html">Visualize Google search results from Clojure REPL</a></h1>
<p>
While back when I was learning Clojure, I have written a small lib
that allows me directly generate bar chart out of google search
results from Clojure. I updated it with latest deps and added a fn to
save the bar-chart to a png file. You can checkout the project here:
<a href="https://github.com/oneness/gcount">https://github.com/oneness/gcount</a>. Here is a one liner to get you
going:
</p>
<div class="org-src-container">
<pre class="src src-shell">git clone git@github.com/oneness/gcount.git && cd gcount && lein repl
</pre>
</div>
<p>
Once you are in repl, you can type following:
</p>
<div class="org-src-container">
<pre class="src src-clojure">(search-view-terms ["Clojure Programming" "Elixir Programming" "Elm Programming"])
</pre>
</div>
<p>
Above will produce something like this:
<img src="https://www.birkey.co/images/google-search-result.png" alt="google-search-result.png">
</p>
<div class="taglist"><a href="https://www.birkey.co/tags.html">Tags</a>: <a href="https://www.birkey.co/tag-clojure.html">clojure</a> </div></div>
<div id="postamble" class="status"><br><center>
<div style="display: inline-block; vertical-align:middle;"></div></div>
</body>
</html>