Scrape usernames from a text file

Support / help / discussion forum for twitter bot
Post Reply
Bri
Posts: 536
Joined: Fri Nov 13, 2015 10:53 am

Scrape usernames from a text file

Post by Bri »

Hi Martin

Is there a way to scrape @usernames from a text file.

The text file will include more than just the username, but obviously I want to scrape the username only from a selected .txt file?

Regards
User avatar
martin@rootjazz
Site Admin
Posts: 34706
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Scrape usernames from a text file

Post by martin@rootjazz »

not with the program no
Bri
Posts: 536
Joined: Fri Nov 13, 2015 10:53 am

Re: Scrape usernames from a text file

Post by Bri »

Any chance of such a feature being implemented?
User avatar
martin@rootjazz
Site Admin
Posts: 34706
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Scrape usernames from a text file

Post by martin@rootjazz »

Not really, probably you can find something online as is not related to twitter.

Probably can do it in notepad++ or any other regex compatible text editor: remove all words not starting with @, then replace space " " with a newline \r\n
Bri
Posts: 536
Joined: Fri Nov 13, 2015 10:53 am

Re: Scrape usernames from a text file

Post by Bri »

Scraping Twitter username is not related to Twitter :D ok
User avatar
martin@rootjazz
Site Admin
Posts: 34706
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Scrape usernames from a text file

Post by martin@rootjazz »

Bri wrote: Sat Apr 25, 2020 11:57 pm Scraping Twitter username is not related to Twitter :D ok
Maybe I have misunderstood. You said you have a text file and want to extract @mentions from the text file? So not related to the app or explicitly twitter, just you want @mentions from a file. So is a very specific single user request that you may use once or twice and no one else will. Thus I need to factor in time for adding it and the usage it will get. Then factor that time against how long it will take you to do it manually.

search for @ in the file, copy and paste the mention to another file and move on to the next. How long that take you? 5 minutes?

Thus is not really a priority to do your text file processing for you. Did you try searching online for mentions extraction from a text?
Post Reply