--- a/script/utils/export_twitter_alchemy.py Tue May 07 18:28:26 2013 +0200
+++ b/script/utils/export_twitter_alchemy.py Fri May 10 13:34:40 2013 +0200
@@ -366,7 +366,7 @@
username = None
profile_url = ""
if tw.user is not None:
- username = tw.user.name
+ username = tw.user.screen_name
profile_url = tw.user.profile_image_url if tw.user.profile_image_url is not None else ""
if not username:
username = "anon."
@@ -416,7 +416,7 @@
get_logger().debug("write http " + repr(project)) #@UndefinedVariable
r = requests.put(content_file_write, data=anyjson.dumps(project), headers={'content-type':'application/json'}, params=post_param);
get_logger().debug("write http " + repr(r) + " content " + r.text) #@UndefinedVariable
- if r.status_code != requests.codes.ok:
+ if r.status_code != requests.codes.ok: # @UndefinedVariable
r.raise_for_status()
else:
if content_file_write and os.path.exists(content_file_write):