[Air-L] Twitter data related to a link

Greenhalgh, Spencer P. spencer.greenhalgh at uky.edu
Fri Feb 14 03:43:26 PST 2020


Hi Devayani,

Sina’s right—any collection tool that is based on a search term will accept a URL just as easily as a hashtag. I’ve successfully used TAGS (https://tags.hawksey.info) to collect the sharing of a URL over time, and that rtweet code should work beautifully for a one-time search.

Spencer

> On Feb 14, 2020, at 05:00, Sina Furkan Özdemir <sina.ozdemir at ntnu.no> wrote:
> 
> Hi Devayani,
> 
> I think it is possible to do it with python and/or R. I use R with rtweet For my Twitter work. I haven't tracked a link myself but I suspect you can do it with the following code in R.
> 
> #---------------
> library(rtweet)
> 
> api_token = rtweet::create_token(app = "app_name",consumer_key = "consumer_key",consumer_secret = "consumer_secret_key",access_token = "access_token_key",access_secret = "access_secret_key",set_renv = F)
> 
> link = "your_link"
> 
> link_tweets = search_tweets(q = link,n =  18000,type = "recent", include_rts = TRUE,retryonratelimit = T, token = api_token)
> 
> write_as_csv(x = link_tweets,file_name = "link_tweets.csv",prepend_ids = T,na = "",fileEncoding = "UTF-8")
> #------------------
> 
> 
> You need to create a developer account to connect to API. It's free and it is not a big hassle. 
> 
> Hope it helps ??
> 
> Best,
> Sina
> 
> 
> 
>> -----Original Message-----
>> From: Air-L <air-l-bounces at listserv.aoir.org> On Behalf Of Devayani Tirthali
>> Sent: Friday, February 14, 2020 9:04 AM
>> To: Air-L at listserv.aoir.org
>> Subject: [Air-L] Twitter data related to a link
>> 
>> Hello list,
>> 
>> I have been trying to figure out how to get data about spread of a link on
>> Twitter.
>> I see a lot of tools that can provide data on hashtags, users, search terms but
>> haven't figured out how to search for links on twitter.
>> Any help is appreciated.
>> 
>> Devayani
>> _______________________________________________
>> The Air-L at listserv.aoir.org mailing list is provided by the Association of
>> Internet Researchers https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Faoir.org&data=02%7C01%7Cspencer.greenhalgh%40uky.edu%7C119a05d5587c4442b95b08d7b134c944%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637172712589151885&sdata=60fvjyojl6WVLtnvZ%2FN%2FeFs0AUn0gNLNDnnNbswLjtI%3D&reserved=0 Subscribe, change options or unsubscribe
>> at: https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flistserv.aoir.org%2Flistinfo.cgi%2Fair-l-aoir.org&data=02%7C01%7Cspencer.greenhalgh%40uky.edu%7C119a05d5587c4442b95b08d7b134c944%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637172712589151885&sdata=67R9iJODo9HKg4oT3kyLjc7uFYaCZc2ExSfuiL%2Fv%2FeA%3D&reserved=0
>> 
>> Join the Association of Internet Researchers:
>> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.aoir.org%2F&data=02%7C01%7Cspencer.greenhalgh%40uky.edu%7C119a05d5587c4442b95b08d7b134c944%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637172712589161876&sdata=L8fX26c%2BdHwS0CFbl50JFYmiJ2fY6PQD2ji83mKxbf0%3D&reserved=0
> _______________________________________________
> The Air-L at listserv.aoir.org mailing list
> is provided by the Association of Internet Researchers https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Faoir.org&data=02%7C01%7Cspencer.greenhalgh%40uky.edu%7C119a05d5587c4442b95b08d7b134c944%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637172712589161876&sdata=zOZW4%2BIc6kjxwkkFqzL1LnqUoloDNTeGpWFwPQiCTKA%3D&reserved=0
> Subscribe, change options or unsubscribe at: https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flistserv.aoir.org%2Flistinfo.cgi%2Fair-l-aoir.org&data=02%7C01%7Cspencer.greenhalgh%40uky.edu%7C119a05d5587c4442b95b08d7b134c944%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637172712589161876&sdata=ovMbih2j5pnV2WMY8A%2BO%2FSGGTEp4fL8nS48R8B3Ni6w%3D&reserved=0
> 
> Join the Association of Internet Researchers:
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.aoir.org%2F&data=02%7C01%7Cspencer.greenhalgh%40uky.edu%7C119a05d5587c4442b95b08d7b134c944%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637172712589161876&sdata=L8fX26c%2BdHwS0CFbl50JFYmiJ2fY6PQD2ji83mKxbf0%3D&reserved=0


More information about the Air-L mailing list