Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scratch/getting_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

# Just stick some data there
# Just stick some data
# with keyword will automatically close the file mentioned in open function
with open('email_addresses.txt', 'w') as f:
f.write("[email protected]\n")
f.write("[email protected]\n")
Expand Down Expand Up @@ -330,4 +331,4 @@ def on_error(self, status_code, data):
# if instead we wanted to start consuming a sample of *all* public statuses
# stream.statuses.sample()

if __name__ == "__main__": main()
if __name__ == "__main__": main()