Skip to content

Submission for Mini Project 1#12

Open
rerafyaw wants to merge 8 commits intosd16fall:masterfrom
rerafyaw:master
Open

Submission for Mini Project 1#12
rerafyaw wants to merge 8 commits intosd16fall:masterfrom
rerafyaw:master

Conversation

@rerafyaw
Copy link

@rerafyaw rerafyaw commented Oct 3, 2016

Sorry im such a klutz i didn click on the final create LOL

Copy link

@branchwelder branchwelder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good job. I didn't really have any comments on formatting for you, besides that you might want to delete unused lines of code that you have commented out, unless you think you'll use them later.

tweetHarvest.py Outdated
for tweet in twitter.search(thread, geo=geocode(location)[:2],start=i,count=5, cached=False):
#print tweet.text
#print tweet.id
#print

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's generally best practice to remove unused/commented out lines of code before submitting an assignment, or provide an explanation of why they are commented out.

# decomposes the tweet into words, and weeds for items in the remove_list
dcomp_tweet = (tweet.text).split()
# removes RTs from the tweet
recombined_tweet = ' '.join([k for k in dcomp_tweet if k not in remove_list])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice list comprehension!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants