<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Search google (and update twitter) from the command line</title> <atom:link href="http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sun, 12 Feb 2012 00:34:28 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: twitter</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870560</link> <dc:creator>twitter</dc:creator> <pubDate>Fri, 21 Aug 2009 12:20:03 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870560</guid> <description>You should do a blog about how one can capture a. Fine as hell band dudes heart.</description> <content:encoded><![CDATA[<p>You should do a blog about how one can capture a. Fine as hell band dudes heart.</p> ]]></content:encoded> </item> <item><title>By: aery</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870548</link> <dc:creator>aery</dc:creator> <pubDate>Fri, 21 Aug 2009 11:47:47 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870548</guid> <description>Goosh is another command line interface for Google search. So , ig you bassically love command line and cant leave windows, goosh should be the ideal choice for you.</description> <content:encoded><![CDATA[<p>Goosh is another command line interface for Google search. So , ig you bassically love command line and cant leave windows, goosh should be the ideal choice for you.</p> ]]></content:encoded> </item> <item><title>By: Avinash</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870457</link> <dc:creator>Avinash</dc:creator> <pubDate>Fri, 21 Aug 2009 04:45:46 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870457</guid> <description>Quitter a command line twitter client, can also be used for updating twitter from command line.</description> <content:encoded><![CDATA[<p>Quitter a command line twitter client, can also be used for updating twitter from command line.</p> ]]></content:encoded> </item> <item><title>By: metaeuphoria</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870296</link> <dc:creator>metaeuphoria</dc:creator> <pubDate>Thu, 20 Aug 2009 19:35:37 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870296</guid> <description>I recently added surfraw to cygwin and in my linux installations. Works great with links terminal browser for a number of searches. Plus less typing.
http://surfraw.alioth.debian.org/
For twitter, I was able to get termtter to work in cygwin. http://termtter.org. I use it nearly everyday now. Didn&#039;t get it to work in ubuntu for some reason; might be how I installed ruby. A ghacks tutorial would be great. :)</description> <content:encoded><![CDATA[<p>I recently added surfraw to cygwin and in my linux installations. Works great with links terminal browser for a number of searches. Plus less typing.<br
/> http://surfraw.alioth.debian.org/</p><p>For twitter, I was able to get termtter to work in cygwin. http://termtter.org. I use it nearly everyday now. Didn&#8217;t get it to work in ubuntu for some reason; might be how I installed ruby. A ghacks tutorial would be great. :)</p> ]]></content:encoded> </item> <item><title>By: k</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870241</link> <dc:creator>k</dc:creator> <pubDate>Thu, 20 Aug 2009 17:28:41 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870241</guid> <description>It&#039;s not obvious why &quot;space[0-9]&quot; causes a bug but I guess it has something to do with the commands google search runs eg. if you search for 1+1 it runs the calculator function. Must be something to do with that.</description> <content:encoded><![CDATA[<p>It&#8217;s not obvious why &#8220;space[0-9]&#8221; causes a bug but I guess it has something to do with the commands google search runs eg. if you search for 1+1 it runs the calculator function. Must be something to do with that.</p> ]]></content:encoded> </item> <item><title>By: JohnDoe</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870235</link> <dc:creator>JohnDoe</dc:creator> <pubDate>Thu, 20 Aug 2009 17:18:51 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870235</guid> <description>word. thanks k. makes plenty of sense now (duh!), didn&#039;t even think of that</description> <content:encoded><![CDATA[<p>word. thanks k. makes plenty of sense now (duh!), didn&#8217;t even think of that</p> ]]></content:encoded> </item> <item><title>By: k</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870230</link> <dc:creator>k</dc:creator> <pubDate>Thu, 20 Aug 2009 17:10:51 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870230</guid> <description>The reason is because your query string &quot;?q=Windows 7&quot;. For some reason it screws up google search. It must be some special keyword to do with numbers if you do &quot;?q=Windows 1&quot; the same thing occurs. You can get around it by doing &quot;?q=Windows%207&quot;, %20 is the hex value for space. You can use sed to convert lots of spaces something like:
echo &quot;http://www.google.com/search?q=Windows 7 is what I want&quot; &#124; sed &#039;s/ /%20/g&#039;
then you could pipe that to curl using xargs by adding: &#124; xargs -n1 curl -A mozilla
Hope this helps</description> <content:encoded><![CDATA[<p>The reason is because your query string &#8220;?q=Windows 7&#8243;. For some reason it screws up google search. It must be some special keyword to do with numbers if you do &#8220;?q=Windows 1&#8243; the same thing occurs. You can get around it by doing &#8220;?q=Windows%207&#8243;, %20 is the hex value for space. You can use sed to convert lots of spaces something like:</p><p>echo &#8220;http://www.google.com/search?q=Windows 7 is what I want&#8221; | sed &#8216;s/ /%20/g&#8217;</p><p>then you could pipe that to curl using xargs by adding: | xargs -n1 curl -A mozilla</p><p>Hope this helps</p> ]]></content:encoded> </item> <item><title>By: k</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870168</link> <dc:creator>k</dc:creator> <pubDate>Thu, 20 Aug 2009 14:41:10 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870168</guid> <description>If you paste the output minus any user/password information something like pastebin I can have a look at it</description> <content:encoded><![CDATA[<p>If you paste the output minus any user/password information something like pastebin I can have a look at it</p> ]]></content:encoded> </item> <item><title>By: JohnDoe</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870144</link> <dc:creator>JohnDoe</dc:creator> <pubDate>Thu, 20 Aug 2009 14:05:23 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870144</guid> <description>whoops, forgot to add my question to that above
..
if i do it w/o the html2text cmd, it spits the html out of course, html2text isn&#039;t converting something properly? (yes it&#039;s installed).
Any idears?</description> <content:encoded><![CDATA[<p>whoops, forgot to add my question to that above<br
/> ..<br
/> if i do it w/o the html2text cmd, it spits the html out of course, html2text isn&#8217;t converting something properly? (yes it&#8217;s installed).</p><p>Any idears?</p> ]]></content:encoded> </item> <item><title>By: JohnDoe</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870142</link> <dc:creator>JohnDoe</dc:creator> <pubDate>Thu, 20 Aug 2009 14:02:26 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870142</guid> <description>curl -A firefox http://www.google.com/search?q=&#039;Windows 7&#039; &#124; html2text -width 80
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100  1350  100  1350    0     0  53143      0 --:--:-- --:--:-- --:--:-- 1318k
Google   Error
****** Bad Request ******
Your client has issued a malformed or illegal request.</description> <content:encoded><![CDATA[<p>curl -A firefox http://www.google.com/search?q=&#8217;Windows 7&#8242; | html2text -width 80<br
/> % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br
/> Dload  Upload   Total   Spent    Left  Speed<br
/> 100  1350  100  1350    0     0  53143      0 &#8211;:&#8211;:&#8211; &#8211;:&#8211;:&#8211; &#8211;:&#8211;:&#8211; 1318k</p><p>Google   Error</p><p> ****** Bad Request ******<br
/> Your client has issued a malformed or illegal request.</p> ]]></content:encoded> </item> <item><title>By: jack</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870099</link> <dc:creator>jack</dc:creator> <pubDate>Thu, 20 Aug 2009 12:48:14 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870099</guid> <description>@k: Oh yeah....&#039;doh on my part. ;-) thanks for that.</description> <content:encoded><![CDATA[<p>@k: Oh yeah&#8230;.&#8217;doh on my part. ;-) thanks for that.</p> ]]></content:encoded> </item> <item><title>By: k</title><link>http://www.ghacks.net/2009/08/20/search-google-and-update-twitter-from-the-command-line/comment-page-1/#comment-870087</link> <dc:creator>k</dc:creator> <pubDate>Thu, 20 Aug 2009 12:34:00 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=15552#comment-870087</guid> <description>you could always do -o /dev/null on the update command to stop the output from showing</description> <content:encoded><![CDATA[<p>you could always do -o /dev/null on the update command to stop the output from showing</p> ]]></content:encoded> </item> </channel> </rss>
