Twitter API integration
- Update file - config/twitter_credential.yml
- Run method in console
TwitterLib::Feed.new.export_posts_by_hashtag("#ruby")
- Pass No of posts you want i.e, 125 -
TwitterLib::Feed.new.export_posts_by_hashtag("#ruby", 125)
- This will fetch posts and store result in CSV
- File name format -
"#{query.parameterize}_#{Time.now.to_i}"
- i.e, query = "#ruby", FILE_NAME can be "ruby_TIMESTAMP"
- FIle Path - /log/twitter_log/FILE_NAME.csv
- File name format -
- Run test cases
bundle exec rspec ./spec/lib/twitter_feed.rb