Using regular expressions you can extract the username from a twitter URL. var twitterURL = item.link; var twitterName = twitterURL.match(/https?:\/\/(www\.)?twitter\.com\/(#!\/)?@?([^\/]*)/)[3];
Post navigation
previous post
Austin Meadows
- Posted in
Only have Sysomos tweet context? Extract username from URL.
- Posted byby John Steinmetz
- 1 min
- Posted in
Leadership isn’t just about times of success but also times of struggle.
- Posted byby John Steinmetz
- 2 min
Have to admit, I feel like I let my team down sometimes. Since early on in my life, I have always been the overachiever. I never felt like there was…
Regression analysis is a common tool in the belt of analysts and data scientists. At it’s core, it is understanding the relationship between factors and outcomes. This post hopefully simplifies…