Spaces:
Runtime error
Runtime error
olofbengtsson
commited on
Commit
•
deaf095
1
Parent(s):
58a2a29
Same main as develop
Browse files
twitterscraper/TwitterScraper.py
CHANGED
@@ -111,15 +111,11 @@ class TwitterScraper(object):
|
|
111 |
return "TwitterScraper(from_date={}, to_date={}, num_tweets={})".format(self.from_date, self.to_date,
|
112 |
self.num_tweets)
|
113 |
if __name__ == "__main__":
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
print(dc2)
|
120 |
-
print(dc1.head())
|
121 |
-
print(dc3.head)
|
122 |
-
|
123 |
|
124 |
|
125 |
|
|
|
111 |
return "TwitterScraper(from_date={}, to_date={}, num_tweets={})".format(self.from_date, self.to_date,
|
112 |
self.num_tweets)
|
113 |
if __name__ == "__main__":
|
114 |
+
sc = TwitterScraper(from_date="2022-05-01", to_date="2022-07-31", num_tweets=40)
|
115 |
+
dc = sc.scrape_by_user("jimmieakesson")
|
116 |
+
print(dc.head())
|
117 |
+
print(dc.shape)
|
118 |
+
print(dc.columns)
|
|
|
|
|
|
|
|
|
119 |
|
120 |
|
121 |
|