Skip to content

Commit 1863372

Browse files
authored
Remove doctests
1 parent 18dd999 commit 1863372

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

web_programming/get_user_tweets.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,12 @@
99
access_secret = ""
1010

1111

12-
def get_all_tweets(screen_name: str) -> str:
13-
"""
14-
Save tweets of a user in a CSV file
15-
>>> get_all_tweets()
16-
'success'
17-
"""
12+
def get_all_tweets(screen_name: str) -> None:
1813

1914
# authorize twitter, initialize tweepy
2015
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
2116
auth.set_access_token(access_key, access_secret)
2217
api = tweepy.API(auth)
23-
status = ""
2418

2519
# initialize a list to hold all the tweepy Tweets
2620
alltweets = []
@@ -59,12 +53,9 @@ def get_all_tweets(screen_name: str) -> str:
5953
writer = csv.writer(f)
6054
writer.writerow(["id", "created_at", "text"])
6155
writer.writerows(outtweets)
62-
status = "success"
6356

6457
pass
6558

66-
return status
67-
6859

6960
if __name__ == "__main__":
7061
# pass in the username of the account you want to download

0 commit comments

Comments
 (0)