Thursday, April 02, 2015

how to export twitters following list

well at some point you may need to have all following list which you have in your twitter account. I tried some websites and twitter api but coult not find a way. at the end I take it with javascript :)

go to this adres and go to end of the page.

https://twitter.com/following

it looks like this in my account


after that open the chrome javascript console. I do it with F12. then I needed to have all twitter account names. here is the javascript I used for it.

var arr = [];
$(".u-linkComplex-target").each(function(index, elem){
    arr.push($(this).text());
});
arr.join(',');

you just need to paste this in the console and hit enter. then in the console you will have very long string like this

akkiocal,superonlinetr,odersky,javanetbuzz,dayioglu,corpuscallosum,

and my screen look like this


you can select very long string from there and save it anywahere you like enjoy :)

by the way in the future if script does not work feel free to ask me via comments. because they can change the class of that html tag.

2 comments:

john backstrom said...

Thank you for posting this! Is there any way to also pull other data such as Biography, URL, etc.?

ozzy said...

have you checked twitter api https://dev.twitter.com/rest/public ?

as long as you fallow javascript. we can always find a way to do it. which page which biography are you talking about ?

apple iphone 16 return in UK Glasgow

 After I saw that WhatsApp desktop is not working(I tried 2 different laptops, uninstalled or resetting the app but did not work) and uBlock...