jgoerzen / twidge

Command-line twitter/identica client [Haskell]
http://wiki.github.com/jgoerzen/twidge/
GNU General Public License v2.0
220 stars 30 forks source link

unable to find a twitter name using twidge #71

Open hmilz opened 6 years ago

hmilz commented 6 years ago

Hi all,

I have been using twidge for a while successfully and am pretty familiar with the features. Alas, I can't seem to find a way how to find a user's current twitter name (as opposed to the handle). What am I missing?

TIA!

hmilz commented 6 years ago

I hate to follow up myself, but the easy way is to simply wget the profile and then pipe the result through sed like this:

sed -n 's/.(.</em>) (@.*$/\1/p' </p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>