Extracting list of usernames from tweets

Support / help / discussion forum for twitter bot
Post Reply
hakunamatata187
Posts: 9
Joined: Wed Jul 29, 2020 10:02 am

Extracting list of usernames from tweets

Post by hakunamatata187 »

Hi guys,

I'm trying to find a way how to extract usernames from specifc tweets that I than can use to block those accounts. I think I found a way how to extract ID's but not actual usernames for the blocklist.

Preferably I'd like to extract only usernames of people that commented on those specific posts.
User avatar
martin@rootjazz
Site Admin
Posts: 34696
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Extracting list of usernames from tweets

Post by martin@rootjazz »

you want to do it as a one off or regular?

If a one off, just load the file into a text editor (notepad++)
search and replace (cntr+h)
search: https://twitter.com/
replace:

or
search: https://mobile.twitter.com/
replace:
as required (or bot)

then in search and replace select REGEX mode
search: /status/[0-9]+$
replace:


where replace in both cases is empty
then

becomes
h1h219_
hh2219_
hh2319_
hh2149_
hh219_
1hh219_
h2h219_
hh3219_


Regards,
Martin
Post Reply