Thanks for the reply David, happy holidays too! I tried with your suggestion, however the following cURL command in shell script still cannot export search result to a .txt file:
curl http://search.twitter.com/search.json?geocode=37.781157,-122.398720,15km&lang=en&rpp=100&page=1 >> searchrecord.txt The screen display says something like: [1] Done curl http://search.twitter.com/search.json?geocode=37.781157,-122.398720,15km [2]- Done lang=en [3]+ Done rpp=100 And apparently the "lang" parameter sometimes doesn't work: I still get tweets in other languages. What I don't understand is that a simple parameter query works fine, and the output is like: curl http://search.twitter.com/search.json?geocode=37.781157,-122.398720,15km >> searchrecord.txt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10488 100 10488 0 0 14541 0 --:--:-- --:--:-- --:--:-- 52806 Any suggestions? Thanks, epomqo On Dec 26, 7:34 am, David <[email protected]> wrote: > You don't want to url encode the ampersands in this case since you want to > use as part of their reserved function for separating parameters. > > This URL should > work:http://search.twitter.com/search.json?geocode=37.781157,-122.398720,1... > > If you wanted to specify an ampersand inside a query parameter, then you > would url encode it, but in this case, the &'s and the ? are special > characters used for defining and separating parameters so you don't want to > encode them. > > Happy Hollidays, > David -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
