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.
Extracting list of usernames from tweets
-
- Posts: 9
- Joined: Wed Jul 29, 2020 10:02 am
- martin@rootjazz
- Site Admin
- Posts: 37273
- Joined: Fri Jan 25, 2013 10:06 pm
- Location: The Funk
- Contact:
Re: Extracting list of usernames from tweets
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
Regards,
Martin
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
https://mobile.twitter.com/h1h219_/stat ... 8271760388
https://mobile.twitter.com/hh2219_/stat ... 8271760388
https://mobile.twitter.com/hh2319_/stat ... 8271760388
https://mobile.twitter.com/hh2149_/stat ... 8271760388
https://mobile.twitter.com/hh219_/statu ... 8271760388
https://mobile.twitter.com/1hh219_/stat ... 8271760388
https://mobile.twitter.com/h2h219_/stat ... 8271760388
https://mobile.twitter.com/hh3219_/stat ... 8271760388
becomes
h1h219_
hh2219_
hh2319_
hh2149_
hh219_
1hh219_
h2h219_
hh3219_
Regards,
Martin