Both of the solutions work! Seems the link was broken by the "&"
before...

Thanks very much for all of your kind help even on these holidays! :-)

Best,
epomqo

On Dec 26, 4:48 pm, Matt Harris <mhar...@twitter.com> wrote:
> It looks like you're running curl from the command line. Try wrapping the 
> entire URL in quotes - this would make your request:
>     curl 
> "http://search.twitter.com/search.json?geocode=37.781157,-122.398720,1..."; > 
> file.txt
>
> Alternatively leave out the quotes and escape the &. e.g. lang=en&rpp=100 
> becomes lang=en\&rpp=100
>
> Best,
> @themattharris
>
> On Dec 26, 2010, at 5:57, epomqo <wenzi0...@gmail.com> wrote:
>
> > Thanks Adam. I will carefully look at the results from the "lang"
> > parameter.
>
> > From the screen display above:
>
> > [1]   Done                    
> > curlhttp://search.twitter.com/search.json?geocode=37.781157,-122.398720,15km
> > [2]-  Done                    lang=en
> > [3]+ Done                    rpp=100
>
> > It seems that the last two parameters "lang" and "rpp" are not treated
> > together with the main cURL command, and they don't really affect the
> > search result. I also don't get 100 results after adding the "rpp"
> > command. Have you ever succeed in running such a multi-parameter query
> > with cURL and getting an output file?
>
> > Many thanks,
> > epomqo
>
> > On Dec 26, 11:28 am, Adam Green <140...@gmail.com> wrote:
> >> On Sun, Dec 26, 2010 at 5:11 AM, epomqo <wenzi0...@gmail.com> wrote:
>
> >>> And apparently the "lang" parameter sometimes doesn't work: I still
> >>> get tweets in other languages.
>
> >> From my experience the lang parameter, is not a language detection
> >> algorithm. It just pays attention to the language the user has set in their
> >> profile settings. If they haven't changed it, the default of English is 
> >> left
> >> set, and you get their tweets no matter what the lang parameter is sent to.
> >> If you don't use the lang parameter, you get all tweets that match the
> >> search in any language. If you set lang=en, you get far fewer tweets in
> >> languages other than English, but at least 10-20% are not in English. Of
> >> course that depends on whether your search words match another language.
>
> > --
> > 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

-- 
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

Reply via email to