How much data can I pull from Yahoo Finance? via /r/learnprogramming


How much data can I pull from Yahoo Finance?

Hey everyone!

This is kinda very specific, but I hope it still falls under this sub.

I want to learn Python, especially to use for finance, so I thought it'd be cool to make some script that could look into the financials of a company and then determine whether to buy or not. Of course this is very rough, but it's mostly just to learn more about the markets as well as python in the process. I already have the algorithm that I would use to decide whether or not a stock is a "buy."

However, I'm not sure how to pull data from Yahoo. I've seen a few articles, but it doesn't seem that I can pull as much data as I want. I'd like to get Revenue, Earnings Per Share, and other such data. You can click around Yahoo's tabs and find this data, but from what I've read, it seems (to me) that Yahoo's API only lets you pull data from the "Summary" window. Is this correct? Is there some way to pull data from the other tabs (Statistics, Financials, etc..)?

Thanks for reading! Hopefully this isn't too stupid of a question haha.

Submitted March 31, 2017 at 07:23PM by alionindisguise
via reddit http://ift.tt/2nJb7jP

[C++/OpenCV] Using waitKey in a while loop that uses waitKey via /r/learnprogramming


[C++/OpenCV] Using waitKey in a while loop that uses waitKey

I'm doing image processing and I'd like to be able to adjust certain values with key presses. Meanwhile, the while loop also uses the waitKey to know when to break out of the loop. However, it seems that my program does not like this, as the key presses return no action, even the one to break out of the loop. Below is how I've structured my code. Please note the first line is used in many other programs I've written and works fine in those, but adding in the if statements causes it not to.

while(waitKey(1) != 27) { // Loop until the user presses the escape key // Stuff if(waitKey(1) == 97) { // If the user hits 'a' // Adjust a value } if(waitKey(1) == 65) { // If the user hits 'A' // Adjust a value } . . . if(waitKey(1) == 90) { // If the user hits 'Z' // Adjust a value } } 

Submitted March 31, 2017 at 07:26PM by zthompson2350
via reddit http://ift.tt/2nFBzsZ

What do i need to learn about Math to become a good developer? via /r/learnprogramming


What do i need to learn about Math to become a good developer?

So, I'm a high school dropout but I've been admitted in a CS university.

I don't remember much from high school, and i just don't know where to start.

What do i need to know if I don't want to end up completely lost?

Submitted March 31, 2017 at 06:49PM by learnamateurgramming
via reddit http://ift.tt/2mWUKS1

Is it possible I’m just not smart enough to program? via /r/learnprogramming


Is it possible I’m just not smart enough to program?

I've been trying easy problems in leetcode for a week now and it's a struggle. I am unable to come up with the algorithms and even base ideas to solve any problem. The best I can do every time is basically brute forcing. It's sort of like how if someone couldn't do multiplication and instead just added repeatedly; that's how I feel. All my answers, if even correct, are agonisingly long and the code is just so messy and disgusting.

My question is whether this gets better with time or if some people just aren't cracked out to be programmers. I've been accepted into the best CS university in my country (in grade 12 right now) but I'm having second thoughts about pursuing this career. I feel like other careers, such as accountancy or business don't require natural smarts as much. As long as you know your shit like what a hedge fund is and how to calculate expenditure, you can succeed whereas CS requires a creative brain.

Submitted March 31, 2017 at 07:16PM by 39842uj
via reddit http://ift.tt/2nsb4Xo