vinitshahdeo/jobtweets

Taking query(#hashtags) as input from user

vinitshahdeo opened this issue ยท 16 comments

Currently, the query is hardcoded in jobtweets.py i.e.

tweets = api.get_tweets(query = 'Job Opportunities', count = 500)

Taking the input for query (i.e. #hashtag) from the user through CLI seems better!

Question to answer?

Can we take input as a comma-separated string for processing multiple hashtags at a time?

Enter hashtags: jobs, openings, job opportunities

Note:

  • Make changes only in jobtweets.py
  • Your PR should not break the functionality of the existing code.
  • Add me( @vinitshahdeo ) as reviewer
  • Do not make any changes to other files.

Hi Vinit, I would like to take this up.

@agarwalrounak Please go ahead!

Could have probably been done in a simpler way. Here's my attempt :)
#7

Is this still open?

In CLI while entering tags is there a space character after the comma symbol?

Can I print the results of positive, negative and neutral for each of the tags?

Yeah that would be great!

CHECK OUT THIS LINK FOR LIVE CORONA UPDATES

Hello everyone,

I hope you are staying safe at your home and enjoying the contribution to your awesome open source projects. I've created a web app to display the latest corona updates, please check here.

๐Ÿ‘‹ DO THE FIVE: Help stop coronavirus

  1. HANDS: Wash them often
  2. ELBOW: Cough into it
  3. FACE: Don't touch it
  4. SPACE: Keep safe distance
  5. HOME: Stay if you can

COVID-19: Stay HomeStay Safe

  • Avoid Handshakes ๐Ÿค โŒ
  • Do Namastey ๐Ÿ™ โœ”๏ธ

PS: I know it's off-topic but Yes, COVID-19 everyone's talking about. Please stay safe at your home and enjoy contributing to your projects.

Hello everyone,

Hope everyone's staying safe at home.

Do check out my latest COVID-19 ๐Ÿ˜ทTracker | INDIA ๐Ÿ‡ฎ๐Ÿ‡ณ

Checkout my open letter to all the contributors here. โค๏ธ

COVID-19 Tracker by Vinit Shahdeo


I've just revamped the UI(WIP). You can check the old website here. Consider leaving a star here. โญ
(To be open-sourced pretty soon.)

GitHub stars - COVID-19 Vinit Shahdeo

Is this still open since #13 has fixed the issue

Hello, @vinitshahdeo I want to take this issue.

Hello, @vinitshahdeo can I take this issue?

Hello @vinitshahdeo #46 I updated some old methods and also implementated the CLI input feature

Hello, @vinitshahdeo can I take this issue?

Hi, is this open?

hashtags = input("Enter hashtags (comma-separated): ")
query = hashtags.replace(" ", "").split(",")
tweets = api.get_tweets(query=query, count=500) hii @vinitshahdeo here i have made a new a variable inside def main() method to collect hashtags from user and then i am removing any spaces amongst them to maintain the fundamental feature of hashtags in general and then i am splitting each hashtag individually by using (',') as delimiter and storing this value in query variable and after passing this into tweets variable to get tweets on the basis of provided hashtags. Let me know if i can make any other changes regarding this