Created
August 29, 2019 15:39
-
-
Save kerolloz/c920ec811648c7265ff64ddfd3a087c8 to your computer and use it in GitHub Desktop.
simple python script to extract authors and print their mentions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
text = """ | |
horiuchi <https://github.com/horiuchi> | |
// lukasz-zak <https://github.com/lukasz-zak> | |
// Alorel <https://github.com/Alorel> | |
// jendrikw <https://github.com/jendrikw> | |
// Ethan Resnick <https://github.com/ethanresnick> | |
// vologa <https://github.com/vologab> | |
// jussikinnula <https://github.com/jussikinnula> | |
// ondratra <https://github.com/ondratra> | |
// alfirin <https://github.com/alfirin> | |
// Idan Dardikman <https://github.com/idandrd> | |
// Dominik Heigl <https://github.com/various89> | |
// Fazendaaa <https://github.com/Fazendaaa> | |
// Norman Perrin <https://github.com/NormanPerrin> | |
// Dan Manastireanu <https://github.com/danmana> | |
// stablio <https://github.com/stablio> | |
// Emmanuel Gautier <https://github.com/emmanuelgautier> | |
// Frontend Monster <https://github.com/frontendmonster> | |
// Ming Chen <https://github.com/mingchen> | |
// Olga Isakova <https://github.com/penumbra1> | |
// Orblazer <https://github.com/orblazer> | |
// HughKu <https://github.com/HughKu> | |
// Erik Lopez <https://github.com/niuware> | |
// Vlad Melnik <https://github.com/vladmel1234> | |
// Jarom Loveridge <https://github.com/jloveridge> | |
// Grimmer Kang <https://github.com/grimmer0125> | |
// Richard Davison <https://github.com/richarddd> | |
// Brian Chen <https://github.com/ToucheSir> | |
// Boris Figovsky <https://github.com/borfig> | |
""" | |
mathced = re.findall(r'github.com/(.*)>$', text, re.M) | |
for match in mathced: | |
print('@{}'.format(match)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment