Python Sessions by Dr. Yves J. Hilpisch | The Python Quants GmbH
Online, 27. & 28. January 2018
A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case | |
Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement | |
Please fork, tweet about, etc. | |
---- | |
Creating Shazam in Java | |
A couple of days ago I encountered this article: How Shazam Works | |
This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java? |
import requests | |
# I got a free token and secret key from the developer section in sentimentinvestor.com | |
token = "hidden my token" | |
secret_key = "hidden my secret key" | |
RHI_rank = requests.get("https://sentimentinvestor.com/api/v3/sort?limit=100&metric=RHI&token={0}&key={1}".format(token, secret_key)).json() | |
def get_analysis(recommendation): | |
strong_buy = recommendation["strongBuy"] | |
buy = recommendation["buy"] |
You must provide the following configuration variables:
WP_XMLRPC_URL
= https://www.yourdomain.com/xmlrpc.php
(replace with your domain and use http:// if you don't have SSL support)WP_ADMIN_USER
= admin
(use your own admin username)WP_ADMIN_PASSWORD
= somepassword
(use your own admin password)