<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/assets/atom.xsl" type="text/xsl"?><feed
	xmlns="http://www.w3.org/2005/Atom"
	xmlns:thr="http://purl.org/syndication/thread/1.0"
	xml:lang="en-US"
	><title>Sacha Chua - tag - imacros</title>
	<subtitle>Emacs, sketches, and life</subtitle>
	<link rel="self" type="application/atom+xml" href="https://sachachua.com/blog/tag/imacros/feed/atom/index.xml" />
  <link rel="alternate" type="text/html" href="https://sachachua.com/blog/tag/imacros" />
  <id>https://sachachua.com/blog/tag/imacros/feed/atom/index.xml</id>
  <generator uri="https://11ty.dev">11ty</generator>
	<updated>2013-12-17T01:19:00Z</updated>
<entry>
		<title type="html">Automating bulk web stuff with iMacros</title>
		<link rel="alternate" type="text/html" href="https://sachachua.com/blog/2013/12/automating-bulk-web-stuff-with-imacros/"/>
		<author><name><![CDATA[Sacha Chua]]></name></author>
		<updated>2013-11-22T06:21:12Z</updated>
    <published>2013-12-17T01:19:00Z</published>
    <category term="geek" />
		<id>https://sachachua.com/blog/?p=26537</id>
		<content type="html"><![CDATA[<p>I found myself needing to download a whole bunch of JSON data from a server that had a weird authentication thing that Chrome could deal with but wget/curl/Ruby couldn’t. Since my Firefox was on the fritz, I couldn’t use Selenium IDE or the Selenium Webdriver. iMacros to the rescue! (<a href="https://chrome.google.com/webstore/detail/imacros-for-chrome/cplklnmnlbnpmjogncfgfijoopmnlemp?hl=en">Chrome</a>, <a href="https://addons.mozilla.org/en-US/firefox/addon/imacros-for-firefox/">Firefox</a>)</p>
<p><a href="https://sachachua.com/blog/wp-content/uploads/2013/11/2013-11-21-Geek-notes-automating-bulk-web-stuff-with-iMacros.png"><img loading="lazy" title="2013-11-21 Geek notes - automating bulk web stuff with iMacros" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="2013-11-21 Geek notes - automating bulk web stuff with iMacros" src="https://sachachua.com/blog/wp-content/uploads/2013/11/2013-11-21-Geek-notes-automating-bulk-web-stuff-with-iMacros_thumb.png" width="640" height="487"></a></p>
<p>That plus lots of keyboard macros and text manipulation in Emacs, plus a little parsing and regexp substitution in Ruby, plus more Emacs munging got me the data I wanted. Hooray for bubblegum and string scripting!</p>
<p>You can <a href="https://sachachua.com/blog/2013/12/automating-bulk-web-stuff-with-imacros/#comment">view 2 comments</a> or <a href="mailto:sacha@sachachua.com?subject=Comment%20on%20https%3A%2F%2Fsachachua.com%2Fblog%2F2013%2F12%2Fautomating-bulk-web-stuff-with-imacros%2F&body=Name%20you%20want%20to%20be%20credited%20by%20(if%20any)%3A%20%0AMessage%3A%20%0ACan%20I%20share%20your%20comment%20so%20other%20people%20can%20learn%20from%20it%3F%20Yes%2FNo%0A">e-mail me at sacha@sachachua.com</a>.</p>]]></content>
		</entry>
</feed>