seoblade
Newbie
- Dec 13, 2011
- 25
- 3
Explain me the benefits of scrapping it
wtf are you doing to do with a bunch of twitter uid's?
Explain me the benefits of scrapping it
Try to open the file with a different text editor. If you tried the built-in Win Notepad, try it with Notepad++ or vice versa. Those two treats line breaks differently sometimes.how to split the ids they are all coming in paragraph format......plzz help
Hello is this still working? I have java 8 installed, but just cannot make it run on my WIN7 64.
Yes, it's still working. You need to have Java installed on your machine. Furthermore you'll need to create a Twitter application within your own account (PVA is needed to be able to do that), so you'll have the 4 codes the tool is asking for. After that you can use it for scraping anyone's followers, it scrapes around 50k user ids per 10 minutes.bottomline, is this working? so many posts and just want to know if anyone actually is using this
I ended up creating my own scraper that scrapes usernames instead of IDs, somehow never managed to make this work.
If you cannot get this to work then an alternative is TSupremacy which scrapes id, userid, username etc
How did you get the username from id? I didnt find a solution for that with our http based of browser based scraping. Is twitter allows it?I ended up creating my own scraper that scrapes usernames instead of IDs, somehow never managed to make this work.
it worked through their API.How did you get the username from id? I didnt find a solution for that with our http based of browser based scraping. Is twitter allows it?
Can you give the reference, when I tried I am getting the name on the account not the actual username which is in the profile url. Thanksit worked through their API.
#! /usr/bin/env ruby
require 'rubygems'
require 'csv'
require 'twitter'
@client = Twitter::REST::Client.new do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.access_token = ""
config.access_token_secret = ""
end
def fetch_all_followers(twitter_username)
fname = "#{twitter_username}_friends_list.txt"
@client.follower_ids(twitter_username)
.each_slice(5000)
.with_index do |slice, i|
@client.users(slice)
.each_with_index do |f, j|
File.open(fname, "a+") do |file|
file.write [i * 5000 + j + 1, f.screen_name, "\n"].join(',')
sleep 0.08
end
end
end
end
usernames = %w{
cryptocurrency
}
usernames.each { |username| fetch_all_followers(username) }
I will check it by tomorrow and let you know.still work?
Did it work?I will check it by tomorrow and let you know.