<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrew Levine on Medium]]></title>
        <description><![CDATA[Stories by Andrew Levine on Medium]]></description>
        <link>https://medium.com/@andrew_levine?source=rss-b1c180338ffe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4V1BEdb3RSZntyXpVOFBkQ.jpeg</url>
            <title>Stories by Andrew Levine on Medium</title>
            <link>https://medium.com/@andrew_levine?source=rss-b1c180338ffe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 01:14:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrew_levine/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Writing your very first codemod with jscodeshift]]></title>
            <link>https://medium.com/@andrew_levine/writing-your-very-first-codemod-with-jscodeshift-7a24c4ede31b?source=rss-b1c180338ffe------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a24c4ede31b</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[jscodeshift]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ast]]></category>
            <dc:creator><![CDATA[Andrew Levine]]></dc:creator>
            <pubDate>Tue, 05 Jul 2016 01:34:27 GMT</pubDate>
            <atom:updated>2016-07-05T02:13:45.471Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re a JavaScript developer, and you have perused Twitter, GitHub, or Medium in the last year, you’ve likely heard of <a href="https://github.com/facebook/jscodeshift">jscodeshift</a>. If you haven’t, you’re missing out!</p><p>jscodeshift is a fantastic toolkit, authored by <a href="https://medium.com/u/9ea60eb6fc7c">Christoph Pojer</a> and <a href="https://github.com/fkling">Felix Kling</a>, that allows you to programmatically make massive changes to your JavaScript codebase, using an approachable API that feels syntactically similar to jQuery.</p><p>In this post, it is my goal to provide you with the confidence and knowledge you need to author your very first codemod. To get you to that place, we’ll need to start with a bit of vocabulary.</p><h4>Vocabulary</h4><p><strong>codemod: </strong>Code that is written with the sole intent of transforming other code. An example would be a piece of code that takes a normal function, and rewrites it to be an arrow function.</p><p><strong>AST: </strong>A tree representation of a piece of source code. When working with JavaScript tools that allow you to inspect/modify an <em>AST</em>, this will most commonly be exposed to you in the form of nested JavaScript objects.</p><p><strong>Node: </strong>The representation of a single construct within an <em>AST</em>. An example of a <em>node</em> could be a <em>node</em> for a <em>FunctionExpression</em>. A <em>node</em> will often have many other nodes nested within it.</p><p><strong>Path: </strong>An object that wraps a single <em>node</em>, and exposes an API to make modifying/inspecting information about the <em>node</em> simpler.</p><p><strong>Collection: </strong>A group of <em>path</em> objects that exposes helpers to transform all contained <em>paths</em>, or traverse them further. <em>Collections</em> are very similar to the object returned from jQuery’s <em>$()</em> function.</p><p><strong>r</strong><a href="https://github.com/benjamn/recast"><strong>ecast</strong></a><strong>: </strong>A fantastic library (authored by <a href="https://medium.com/u/540bbf1a0d2b">Ben Newman</a>) that takes an <em>AST</em> and transforms it back into source code. The beauty of recast is that it tries to preserve as much of your codes existing formatting as possible.</p><p><a href="https://github.com/benjamn/ast-types"><strong>ast-types</strong></a><strong>: </strong>Another great library authored by <a href="https://medium.com/u/540bbf1a0d2b">Ben Newman</a>. It exposes 2 kinds of helpers that you’ll be using: functions that allow you to verify assumptions about <em>nodes</em>, and functions that allow you to compose new <em>nodes</em> to be added to an existing <em>AST.</em></p><p>Now that we have that out of the way, it’s time to move on to the fun part!</p><h4>Baby’s First codemod</h4><p>To help with authoring your first codemod, you’ll want to visit <a href="http://astexplorer.net/">AST Explorer</a>, which is an indispensable tool for anyone looking to author a codemod of their own.</p><p>For our very first codemod, we’ll start simple: let’s build one to replace all calls to <em>console.log with console.warn.</em></p><p><strong>Step 1</strong>: Open <a href="http://astexplorer.net/">AST Explorer</a>. From the T<em>ransform</em> menu at the top of the page, select <em>jscodeshift.</em></p><p><strong>Step 2</strong>: In the top-left panel, add the following example code:</p><pre>console.log(&#39;I wish this was console.warn&#39;);</pre><p><strong>Step 3: </strong>In the bottom-left panel, add the following code:</p><pre>export default function transformer(file, api) {<br>    const j = api.jscodeshift;<br>    const root = j(file.source);</pre><pre>    const consoleLogCalls = root.find(j.CallExpression, {<br>        callee: {<br>            object: {<br>                name: &#39;console&#39;<br>            },<br>            property: {<br>                name: &#39;log&#39;<br>            }<br>        }<br>    });</pre><pre>    consoleLogCalls.forEach(p =&gt; {<br>        p.node.callee.property.name = &#39;warn&#39;;<br>    });</pre><pre>    return root.toSource();<br>};</pre><p>If you followed the 3 simple steps above correctly, you should now see your newly transformed code in the bottom-right panel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLNWmnIxDjEL1uAKwnJekg.png" /><figcaption>Excited yet!?</figcaption></figure><p>Unfortunately, copying + pasting code from a blog post isn’t the best way for you to learn. Let’s walk through our new codemod, piece-by-piece, and figure out exactly how this works.</p><h4>Breaking it Down</h4><pre>export default function transformer(file, api) {</pre><p>A codemod is simply a module that exports a function with 2 parameters: <em>file</em> and <em>api.</em></p><pre>const j = api.jscodeshift;</pre><p>The <em>jscodeshift</em> function(commonly aliased as <em>j) </em>will be used frequently in our codemod, to do everything from creating an <em>AST</em> from source, to traversing that <em>AST</em>.</p><pre>const root = j(file.source);</pre><p>Calling the <em>j</em> function with <em>file.source</em> will convert our target files source code into an <em>AST</em>. This <em>AST</em> will be wrapped in a jscodeshift <em>collection.</em></p><pre>const consoleLogCalls = root.find(j.CallExpression, {<br>    callee: {<br>        object: {<br>            name: &#39;console&#39;<br>        },<br>        property: {<br>            name: &#39;log&#39;<br>        }<br>    }<br>});</pre><p>The code above is how we can obtain a collection of all calls to <em>console.log</em> in our source. We do this by using the <em>find</em> method that is exposed on all <em>collections</em>. In this case, we are calling <em>find</em> on our root collection, which tells jscodeshift that we want to search the entire source.</p><p>The <em>find</em> function takes 2 arguments:</p><p><strong>TypeDefinition: </strong>All available type definitions are exposed as properties on the <em>j</em> function. The simplest way to identify the correct type definition you need is to highlight the code you are looking to transform in the top-left panel of AST Explorer. Then, in the top-right panel, look for the <em>type</em> property for the corresponding node. Any <em>type </em>property you see in the <em>AST</em> will always have a corresponding property of the same name on <em>j.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8UhekWt2vGoo28UjM0sng.png" /><figcaption>Identifying the correct TypeDefinition for a piece of code</figcaption></figure><p><strong>(Optional) Filter: </strong>A filter can be either a function that returns <em>true/false</em>, or an object that can be used to partially match against all nodes found for the specified TypeDefinition. In our example above, we use an object that matches unique pieces of the <em>callee</em> property.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*euj1BMuAGVYqvMGjRGcYAQ.png" /></figure><pre>consoleLogCalls.forEach(p =&gt; {<br>    p.node.callee.property.name = &#39;warn&#39;;<br>});</pre><p>A <em>collection</em> exposes many of the common methods you would expect to see on <em>Array.prototype</em>. In this case, we will use <em>forEach</em> to tell jscodeshift that we would like to work with each <em>path</em> in the <em>collection,</em> one at a time.</p><p>This is where the most exciting part of our codemod happens: we’re making a modification to our code, with other code! Although <em>collections</em> and <em>paths</em> expose many helpful APIs to declaratively modify the <em>AST</em>, we can always grab a reference to the <em>node</em> wrapped in a <em>path</em>, and mutate it directly (which is exactly what we’ll do now, for the sake of simplicity). In this example, we are renaming the callee’s <em>property.name</em>, to change it from <em>log</em> to <em>warn</em>.</p><pre>return root.toSource();</pre><p>The final piece of our codemod! jscodeshift expects that a codemod will return a string representation of the new source code when transformation is complete. To obtain a string from our <em>AST</em>, we can call <em>toSource()</em> on the root collection we created at the beginning of this exercise. The <em>toSource() </em>function calls <a href="https://github.com/benjamn/recast"><em>recast</em></a><em> </em>directly, and accepts an object with any options that can be provided to <em>recast</em>.</p><p>And that’s it! You now understand the basics of writing a codemod with jscodeshift!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*QW4oGxrM0iLJjjPXoxJvAQ.gif" /></figure><h4>Helpful Tips</h4><p>In no particular order, here are some helpful tips to guide you on your way to codemod mastery.</p><ul><li>For a list of all available methods exposed on <em>collections </em>and <em>nodes</em>, take a look at the <em>jscodeshift</em> source (<a href="https://github.com/facebook/jscodeshift/blob/master/src/collections/Node.js">node</a>s and <a href="https://github.com/facebook/jscodeshift/blob/master/src/Collection.js">collections</a>). You can also <em>console.log</em> a <em>collection</em> or <em>node</em> in AST Explorer, and use your browser’s DevTools to inspect the prototype chain. If you would like to see better documentation of the methods available, <a href="https://github.com/facebook/jscodeshift/issues/22">ask how you can help on this issue</a>.</li><li>When you need to create new <em>nodes</em> to add/replace existing <em>nodes</em> in the <em>AST</em>, you will want to use the recast <em>builder </em>functions exposed on <em>j</em>. A builder will always be named similarly to a <em>TypeDefinition</em>, but with the first letter being lowercase. For example, the builder for a <em>CallExpression</em> would be <em>j.callExpression()</em>. The easiest way to get started using builders is to start typing out a call to one in <em>AST Explorer</em>. You’ll be prompted with hints that tell you what parameters are expected.</li><li>When writing a new codemod, you’ll often want to do some exploratory digging through the code base you plan to modify. You can do this by writing a codemod that doesn’t make any modifications, but instead calls <em>api.stats(‘some message here’) </em>to log information. When you run the <em>jscodeshift</em> binary with the <em>dry</em> command line argument, it will inform you of how many times the <em>stats</em> function was called with each unique value.</li></ul><h4>Further Learning Resources</h4><p>If you’d like to dig deeper into learning about authoring codemods, the following resources will send you down the right path:</p><ul><li><a href="https://github.com/reactjs/react-codemod"><strong>react-codemod</strong></a><em>: </em>Codemods authored by the React core team, to help with migrations to newer React APIs.</li><li><a href="https://vramana.github.io/blog/2015/12/21/codemod-tutorial/"><strong>How to write a codemod</strong></a><strong>: </strong>An excellent blog post that walks you through writing a codemod to transform string concatenation to ES2015 template strings.</li><li><a href="https://www.toptal.com/javascript/write-code-to-rewrite-your-code"><strong>Write code to Rewrite your code</strong></a><strong>: </strong>Another great blog post, with several real-world examples.</li></ul><h4>Conclusion</h4><p>My hope with this post is that you now feel equipped to continue with more hands-on learning writing your own codemods. I plan to write a follow-up blog post in the next few weeks with more in-depth examples of writing larger transformations, and using more of the built in jscodeshift helpers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a24c4ede31b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Theming the new HipChat 4 beta for OSX]]></title>
            <link>https://medium.com/@andrew_levine/theming-the-new-hipchat-4-beta-for-osx-64e4ba4a6749?source=rss-b1c180338ffe------2</link>
            <guid isPermaLink="false">https://medium.com/p/64e4ba4a6749</guid>
            <category><![CDATA[hipchat]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Andrew Levine]]></dc:creator>
            <pubDate>Sat, 07 Nov 2015 01:09:12 GMT</pubDate>
            <atom:updated>2015-11-10T03:02:21.733Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*NEmJN9yYj90PXtlF-FqRsA.jpeg" /><figcaption>A slightly darker “dark” theme</figcaption></figure><p><strong>Update: </strong>I wrote <a href="https://github.com/DrewML/hipchat-themer">a small application</a> to automate the theming process described in this article.</p><p>A few months ago, HipChat <a href="https://blog.hipchat.com/2015/07/01/customize-hipchat-to-fit-all-your-moods/">added the ability for users to enable a new <em>dark </em>theme</a>. This functionality was initially only available as an option to users of the web client, and not the native desktop application(s). I was elated when I saw that this feature was eventually going to make it’s way to the desktop application.</p><p>Yesterday, that day finally came. I opened up my email in the morning, and was excited to see an invite to download and try out the new beta client for OSX. I quickly downloaded, installed, and opened it up. I immediately hopped into the Preferences menu, and enabled the <em>Dark</em> theme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Mpy6QEyhtW450PXXezduiw.png" /></figure><h4>Close, but not quite there</h4><p>After using the new beta client for a full day, I found that I was fairly happy with the new <em>dark</em> theme. I now had a messaging client that matched my browser theme, my IDE theme, and my terminal theme…sort of.</p><p>Unfortunately, there were still certain aspects of the <em>dark</em> theme that I wasn’t a huge fan of. For example, although the entire content area in the window was now a shade of black or gray, the large title bar for the application is still solid blue. It’s not the end of the world, but what if I could tweak the style of the application to perfectly match my preferences?</p><h4>Native App, or Web App?</h4><p>I noticed while using the beta client that it felt awfully similar to the web client I had been using occasionally in the browser. After a bit more digging, I discovered the reason: it’s the same application.</p><p>It appears that <a href="https://developer.atlassian.com/blog/2015/02/rebuilding-hipchat-with-react/">the Atlassian team had such great success with the initial implementation of their web app using React.js</a>, that they decided to wrap this implementation moving forward within their desktop clients. This is great news for me, because it means that the application is currently being themed with a technology I’m already intimately familiar with: <a href="https://en.wikipedia.org/wiki/Cascading_Style_Sheets">CSS</a>.</p><h4>Modifying the default theme(s)</h4><p>The steps to start theming the HipChat 4 client on OSX are relatively straightforward, and it only takes a few minutes to get started.</p><ol><li>Open Finder, and locate <em>HipChat-Beta.app.</em></li><li>Right click the <em>.app</em> file, and choose <em>Show Package Contents.</em></li><li>Open the <em>Resources</em> folder, and open <em>chat.html</em> in your editor of choice.</li><li>Add a <em>style</em> tag (<em>&lt;style&gt;&lt;/style&gt;</em>) immediately below the <em>title</em> tag (you can technically put this anywhere in the document).</li><li>In your new <em>style</em> tag, you can now add any valid CSS rules (Note: The view used for displaying the HipChat client is rendered in WebKit).</li></ol><p>Of course, the ability to style the application isn’t that useful, unless we’re able to inspect it and identify the different targets for our styles. Luckily, the <a href="http://hipchat.com/chat">HipChat web client</a> uses the same markup and styles as the OSX client, which means that we can just visit the web client and use the browser’s developer tools to prototype.</p><h4>Fixing the title bar</h4><p>Now that we know how to add our own styles to the HipChat client, we can change the color of the title bar, and have a true <em>dark</em> theme.</p><p>Add the following CSS inside of your <em>style</em> tag in <em>chat.html</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11cc94e390a1700845f5257264d43358/href">https://medium.com/media/11cc94e390a1700845f5257264d43358/href</a></iframe><p>Now, save the file, and restart the<em> </em>HipChat client. You should now have a fancy, dark title bar</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txjzMS9y1dIwpK_VtYa0OA.png" /><figcaption>Doesn’t that feel better?</figcaption></figure><h4>Conclusion</h4><p>Thanks to the architecture of the new HipChat desktop client on OSX, anyone who knows how to write CSS can now style the application to best fit their tastes. As a word of caution, there is no way that I am aware of currently to prevent the custom styles from being wiped out after an upgrade to a new version of the client.</p><p>In the future, I would love to see the Atlassian team offer the ability for users to upload and share their own themes, that could then be installed through the <a href="https://marketplace.atlassian.com/">Atlassian Marketplace</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64e4ba4a6749" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tagging tests w/ Protractor and Mocha]]></title>
            <link>https://medium.com/@andrew_levine/tagging-tests-w-protractor-and-mocha-20b20bc10322?source=rss-b1c180338ffe------2</link>
            <guid isPermaLink="false">https://medium.com/p/20b20bc10322</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[protractor]]></category>
            <dc:creator><![CDATA[Andrew Levine]]></dc:creator>
            <pubDate>Fri, 06 Nov 2015 03:15:26 GMT</pubDate>
            <atom:updated>2015-11-06T03:15:26.897Z</atom:updated>
            <content:encoded><![CDATA[<p>For the last several months, I’ve been itching for an opportunity to do more work in the area of automated UI testing. I recently had the opportunity during my 9–5 to begin building out a suite of UI tests to be used for validation of a 3rd party Enterprise Application Suite that we frequently write integrations for on behalf of our clients. The long-term goal of the test suite is to allow developers to feel confident their new integrations do not break existing functionality in the application.</p><p>After trying out a few UI testing frameworks(<a href="http://nightwatchjs.org/">Nightwatch</a>, vanilla <a href="http://webdriver.io/">Selenium WebDriver</a>), I eventually made the decision to build our testing suite on top of the <a href="https://angular.github.io/protractor/#/">Protractor</a> framework. Although Protractor was initially built with the goal of testing <a href="https://angularjs.org/">Angular</a> applications, it lends itself very well to testing applications authored using other Front End frameworks. There were several factors that led to my decision to use Protractor, but those are outside the scope of this post.</p><h4>The Problem</h4><p>Getting started with Protractor was quick and painless. However, as the number of tests in my suite began to grow, I found that I frequently had the desire to run only a small subset of my tests at any given time. Some of the use cases for this were:</p><ol><li>Being able to execute tests for one page/feature while it is being developed locally.</li><li>The ability to exclude slow-running tests during local development.</li><li>The ability to exclude tests for features that may be disabled for clients in the 3rd party application.</li></ol><p>After doing some quick Googling, I discovered that Protractor provides <a href="https://github.com/angular/protractor/blob/master/docs/referenceConf.js#L87">the option for you to run a limited number of <em>suites</em>.</a> This feature allows you to use <a href="https://en.wikipedia.org/wiki/Glob_%28programming%29">globbing patterns</a> to segment your tests into different named suites. You can then use the <em>suite</em> parameter on the command line to pass a comma-delimited list of suites you wish to run. However, I discovered that this feature imposed certain limitations:</p><ol><li>It limits you to only being able to identify tests based on the information you can infer from the file system. This limits how creative you can be with segmenting tests into different groupings.</li><li>It requires updating the globbing patterns in the configuration file if you decide to change the folder structure or naming conventions in your project in the future.</li><li>You cannot tag a single test case within a file (ex: slow). Instead, you have to refactor the test out to a separate file, which will likely require refactoring your <em>beforeEach</em> hook into a separate file if you want to limit repetition.</li><li>It moves the metadata about a test or tests into a configuration file, instead of associating it directly with the test(s). This makes it less likely that a future developer on the project will discoverer this information on their own, without explicit documentation. Documentation can quickly go stale, so it would be nice if we had a means of declaratively associating this info within the tests themselves.</li></ol><h4>The Solution</h4><p>Although I personally found the <em>suites</em> functionality to be limiting, the problem can still be solved thanks to the flexibility of Protractor!</p><p>Protractor provides <a href="https://github.com/angular/protractor/blob/master/docs/frameworks.md">bindings to 4 different BDD testing frameworks</a>. In my particular case, I was already using the <a href="https://mochajs.org/">Mocha</a> testing framework, which I found has <a href="https://github.com/mochajs/mocha/wiki/Tagging">support for tagging in the form of their <em>grep</em> option</a>. Armed with this information, it only took a small bit of glue code to achieve <em>tagging</em> functionality that I was happy with.</p><h4>The Implementation</h4><p>At a high-level, the steps to implement tagging with Protractor/Mocha are:</p><ol><li>Decide on a convention/syntax for how tags should be expressed through-out the tests (ex: <em>#tagname</em> or <em>@tagname).</em></li><li>“Tag” any tests by adding the tag within the description of a <em>describe</em> or <em>it</em> call.</li><li>In the Protractor config file, within <em>mochaOpts</em>, use the <em>grep</em> property to assign a regular expression (either as a string, or a literal) that matches any of the tags associated with tests that should be run (ex: <em>#tag1|#tag2</em>). This can be overridden at run time by passing a value for <em>mochaOpts.grep </em>on the command line.</li><li>Run the tests in Protractor, and Mocha will now use the <em>grep</em> option to limit your tests to only those with tags defined in the <em>grep</em> option.</li></ol><p>This is a great start, but there are a few problems with this basic implementation:</p><ol><li>It doesn’t enforce a common convention/syntax. Developers may have different preferences, which will inevitably lead to different team members/contributors using their own syntax and regular expressions. This will lead to an inconsistent/unpredictable tagging API.</li><li>It’s awkward for a <em>taggin</em>g system to use an option named <em>mochaOpts.grep</em>, instead of something more straightforward like <em>tags, </em>which is a bit more clear about it’s intentions for this use case.</li></ol><p>Luckily, the Protractor configuration file is just a <a href="https://en.wikipedia.org/wiki/CommonJS">CommonJS module</a> that runs in <a href="https://nodejs.org/en/">Node.js</a>. This means that we can pass custom parameters when running Protractor from the command line, and then parse them and dynamically set configuration values.</p><p>The final implementation I’m using now looks something like this bare-bones example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f918e6276c34301b24e80eb1d97c38ff/href">https://medium.com/media/f918e6276c34301b24e80eb1d97c38ff/href</a></iframe><p>With this implementation in place, I can now simply pass the <em>tags</em> option to Protractor on the command line:</p><pre>protractor --tags feature1,slow</pre><h4>Conclusion</h4><p>With a <em>very</em> small bit of effort, it was possible to create a declarative tagging feature for our UI testing suite, simply by composing together the features of 2 extensible tools (Mocha’s <em>grep</em>, and Protractor’s module-based config file and bindings to Mocha).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20b20bc10322" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>