On Wednesday, July 26, 2017 at 2:07:30 PM UTC-4, Shawn Milochik wrote: > > On Wed, Jul 26, 2017 at 11:47 AM, Tong Sun wrote: > >> Any simple go code out there that can search Twitter? Thx. >> > > With a question this broad, you'd get much better and faster results by > using Google. >
Funny there are people out there showing off by saying that they can do Google search, as if no one else knows it but he. <Sigh>, so impatient, judgmental and condescending. If you had paid a little more attention, it is not at all so broad as you think. Now read it again -- The keywords are: "*simple*" and "*search*". The monster tool that emphasizes on *re-tweeting* does NOT qualify as the answer. Period. Luckily, with a bit more patient, I'm able to find a *simple* go code that *can* *search* Twitter -- https://github.com/cathalgarvey/sqrape/blob/master/examples/tweetgrab.go Nice one! Going along that direction, I think the cascadia <https://github.com/suntong/cascadia> the command line tool is even more simpler, in a sense of less dependency and less/no Go coding: $ cascadia -i 'https://twitter.com/search?q=%22Gas%20Price%20Alert%22%20%23GTA%20from%3AGasBuddyDan&src=typd' -o -c 'div.stream div.original-tweet div.content' --piece Time='small.time' --piece Tweet='div.js-tweet-text-container > p' Time Tweet Jul 31 Gas Price Alert #Toronto #GTA #Hamilton #Ottawa #LdnOnt #Barrie #Kitchener #Niagara #Windsor N/C Tues and to a 2ct/l HIKE gor Wednesday Jul 6 Gas Price Alert #Toronto #GTA #LdnOnt #Hamilton #Ottawa #Barrie #KW to see a 1 ct/l drop @ for Friday July 7 May 30 Gas Price Alert #Toronto #GTA #Ottawa #LdnOnt #Hamilton #KW #Barrie #Windsor prices won't change Wednesday but will DROP 1 ct/l Thursday May 15 Gas Price Alert #Toronto #GTA #Barrie #Hamilton #LdnOnt #Ottawa #KW #Windsor NO CHANGE @ except gas bar shenanigans for Tues & Wednesday Mar 7 Gas Price Alert #Toronto #GTHA #LdnOnt #Ottawa #Barrie #KW #Windsor to see a 1 cent a litre HIKE Wed March 8 (to 107.9 in the #GTA) Check out the details at https://github.com/suntong/cascadia#twitter-search, which I updated just now. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.