-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.py
More file actions
30 lines (20 loc) · 736 Bytes
/
test.py
File metadata and controls
30 lines (20 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from crypto_news_api import CryptoControlAPI
import sys
api = CryptoControlAPI(sys.argv[1])
api.enableSentiment()
# Get top news
print(api.getTopNews())
# get latest russian news
print(api.getLatestNews("ru"))
# get top bitcoin news
print(api.getTopNewsByCoin("bitcoin"))
# get top EOS tweets
print(api.getTopTweetsByCoin("eos"))
# get top Ripple reddit posts
print(api.getLatestRedditPostsByCoin("ripple"))
# get reddit/tweets/articles in a single combined feed for NEO
print(api.getTopFeedByCoin("neo"))
# get latest reddit/tweets/articles (seperated) for Litecoin
print(api.getLatestItemsByCoin("litecoin"))
# get details (subreddits, twitter handles, description, links) for ethereum
print(api.getCoinDetails("ethereum"))