Learn to code in Python to pull Streaming tweets from Twitter. Following are the steps that you see in the track in detail.
Create twitter account, if you don't have one
Generate API & Access tokens from the link below
developer.twitter.com/, Navigate to Apps and app name to generate all keys & secrets
Authenticate and make sure your keys work
Create API object
Check for latest 100 tweets with hashtag python or orskl
Create a class that listens streaming tweets with hashtag python or orskl
Refer to docs.python.org/3/tutorial/cl... for details on Python classes
Let this run in PyCharm and test
Run the code in the background and verify data flowing in
Post a tweet and verify if it is available in the flat file on your local
Exercise
Record all the tweets for hashtag #machineLearning between 1-Jan-2020 and today
Github URL for the code : github.com/pawanyaddanapudi/p...
Connect with me : www.linkedin.com/in/pawanyv
Happy learning !!!
Pawan Yaddanapudi
Негізгі бет Ғылым және технология Track 5 | Python Data Engineering | Streaming data | Twitter | Extract & Transform
Пікірлер: 1