|
|
@ -172,10 +172,10 @@ class TwitterNetworkData(NetworkData): |
|
|
|
self.message = _unhtml(data['text']) |
|
|
|
self.message = _unhtml(data['text']) |
|
|
|
|
|
|
|
|
|
|
|
# regular expression for users |
|
|
|
# regular expression for users |
|
|
|
self.user_regexp = r'@[a-zA-Z0-9_]' |
|
|
|
self.user_regexp = r'@\w+' |
|
|
|
|
|
|
|
|
|
|
|
# regular expression for hashtags |
|
|
|
# regular expression for hashtags |
|
|
|
self.tag_regexp = r'#[a-zA-Z0-9_]' |
|
|
|
self.tag_regexp = r'#\w+' |
|
|
|
|
|
|
|
|
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|