How to programatically (Python) scrape streaming live stock chart ticker data and its indicators












0















I have been working on a personal educational project to scrape stock and indicators' data from live chart of the stocks in Python. It could be from Yahoo Finance or investing.com or other similar websites. I know how to scrape data from basic websites but have no clue on how to scrape data from live charts [specially indicators] and store them in numpy array in a meaningful way. Below is the view and link to a sample chart.



Sample chart of Apple Inc. along with the desired indicators



Link to the chart view. If same view is not visible click on expand view button on top right corner of the chart block



Any help would be appreciated. A nice to have feature would be the ability to select different timeframes and then scrape data.



[EDIT 1]



As per the suggestions given in the comments i tried to use Scrapy but that is not how i want to resolve the issue. What i am trying is to get the data without loading a browser.



Grateful if someone can help.










share|improve this question




















  • 1





    It would be preferable to find an API that makes the data you're looking for available.

    – Bill the Lizard
    Nov 20 '18 at 18:15











  • Thanks a lot for the response. However, as I mentioned the purpose it to learn the process. Also, as far as I know, these websites do not provide an API.

    – A_N
    Nov 20 '18 at 18:28








  • 1





    You should take a look at scrapy.org, this is a mature web scraping framework

    – Guillaume
    Nov 20 '18 at 19:03











  • Thanks @Guillaume for pointing to the right direction. Will definitely take a look at Scrapy.

    – A_N
    Nov 20 '18 at 19:22
















0















I have been working on a personal educational project to scrape stock and indicators' data from live chart of the stocks in Python. It could be from Yahoo Finance or investing.com or other similar websites. I know how to scrape data from basic websites but have no clue on how to scrape data from live charts [specially indicators] and store them in numpy array in a meaningful way. Below is the view and link to a sample chart.



Sample chart of Apple Inc. along with the desired indicators



Link to the chart view. If same view is not visible click on expand view button on top right corner of the chart block



Any help would be appreciated. A nice to have feature would be the ability to select different timeframes and then scrape data.



[EDIT 1]



As per the suggestions given in the comments i tried to use Scrapy but that is not how i want to resolve the issue. What i am trying is to get the data without loading a browser.



Grateful if someone can help.










share|improve this question




















  • 1





    It would be preferable to find an API that makes the data you're looking for available.

    – Bill the Lizard
    Nov 20 '18 at 18:15











  • Thanks a lot for the response. However, as I mentioned the purpose it to learn the process. Also, as far as I know, these websites do not provide an API.

    – A_N
    Nov 20 '18 at 18:28








  • 1





    You should take a look at scrapy.org, this is a mature web scraping framework

    – Guillaume
    Nov 20 '18 at 19:03











  • Thanks @Guillaume for pointing to the right direction. Will definitely take a look at Scrapy.

    – A_N
    Nov 20 '18 at 19:22














0












0








0


1






I have been working on a personal educational project to scrape stock and indicators' data from live chart of the stocks in Python. It could be from Yahoo Finance or investing.com or other similar websites. I know how to scrape data from basic websites but have no clue on how to scrape data from live charts [specially indicators] and store them in numpy array in a meaningful way. Below is the view and link to a sample chart.



Sample chart of Apple Inc. along with the desired indicators



Link to the chart view. If same view is not visible click on expand view button on top right corner of the chart block



Any help would be appreciated. A nice to have feature would be the ability to select different timeframes and then scrape data.



[EDIT 1]



As per the suggestions given in the comments i tried to use Scrapy but that is not how i want to resolve the issue. What i am trying is to get the data without loading a browser.



Grateful if someone can help.










share|improve this question
















I have been working on a personal educational project to scrape stock and indicators' data from live chart of the stocks in Python. It could be from Yahoo Finance or investing.com or other similar websites. I know how to scrape data from basic websites but have no clue on how to scrape data from live charts [specially indicators] and store them in numpy array in a meaningful way. Below is the view and link to a sample chart.



Sample chart of Apple Inc. along with the desired indicators



Link to the chart view. If same view is not visible click on expand view button on top right corner of the chart block



Any help would be appreciated. A nice to have feature would be the ability to select different timeframes and then scrape data.



[EDIT 1]



As per the suggestions given in the comments i tried to use Scrapy but that is not how i want to resolve the issue. What i am trying is to get the data without loading a browser.



Grateful if someone can help.







python-3.x highcharts web-scraping beautifulsoup finance






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 4:51







A_N

















asked Nov 20 '18 at 18:12









A_NA_N

6710




6710








  • 1





    It would be preferable to find an API that makes the data you're looking for available.

    – Bill the Lizard
    Nov 20 '18 at 18:15











  • Thanks a lot for the response. However, as I mentioned the purpose it to learn the process. Also, as far as I know, these websites do not provide an API.

    – A_N
    Nov 20 '18 at 18:28








  • 1





    You should take a look at scrapy.org, this is a mature web scraping framework

    – Guillaume
    Nov 20 '18 at 19:03











  • Thanks @Guillaume for pointing to the right direction. Will definitely take a look at Scrapy.

    – A_N
    Nov 20 '18 at 19:22














  • 1





    It would be preferable to find an API that makes the data you're looking for available.

    – Bill the Lizard
    Nov 20 '18 at 18:15











  • Thanks a lot for the response. However, as I mentioned the purpose it to learn the process. Also, as far as I know, these websites do not provide an API.

    – A_N
    Nov 20 '18 at 18:28








  • 1





    You should take a look at scrapy.org, this is a mature web scraping framework

    – Guillaume
    Nov 20 '18 at 19:03











  • Thanks @Guillaume for pointing to the right direction. Will definitely take a look at Scrapy.

    – A_N
    Nov 20 '18 at 19:22








1




1





It would be preferable to find an API that makes the data you're looking for available.

– Bill the Lizard
Nov 20 '18 at 18:15





It would be preferable to find an API that makes the data you're looking for available.

– Bill the Lizard
Nov 20 '18 at 18:15













Thanks a lot for the response. However, as I mentioned the purpose it to learn the process. Also, as far as I know, these websites do not provide an API.

– A_N
Nov 20 '18 at 18:28







Thanks a lot for the response. However, as I mentioned the purpose it to learn the process. Also, as far as I know, these websites do not provide an API.

– A_N
Nov 20 '18 at 18:28






1




1





You should take a look at scrapy.org, this is a mature web scraping framework

– Guillaume
Nov 20 '18 at 19:03





You should take a look at scrapy.org, this is a mature web scraping framework

– Guillaume
Nov 20 '18 at 19:03













Thanks @Guillaume for pointing to the right direction. Will definitely take a look at Scrapy.

– A_N
Nov 20 '18 at 19:22





Thanks @Guillaume for pointing to the right direction. Will definitely take a look at Scrapy.

– A_N
Nov 20 '18 at 19:22












1 Answer
1






active

oldest

votes


















0














Use scrapy. Start with the tutorial.






share|improve this answer



















  • 1





    Please add some more context to the pages you're linking to, see How to answer

    – Joakim Danielson
    Nov 23 '18 at 9:57











  • I have tried to use Scrapy but it is not useful for me as i do not want to open a browser. What i want is to scrape data directly into a variable.

    – A_N
    Nov 26 '18 at 4:48











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399065%2fhow-to-programatically-python-scrape-streaming-live-stock-chart-ticker-data-an%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Use scrapy. Start with the tutorial.






share|improve this answer



















  • 1





    Please add some more context to the pages you're linking to, see How to answer

    – Joakim Danielson
    Nov 23 '18 at 9:57











  • I have tried to use Scrapy but it is not useful for me as i do not want to open a browser. What i want is to scrape data directly into a variable.

    – A_N
    Nov 26 '18 at 4:48
















0














Use scrapy. Start with the tutorial.






share|improve this answer



















  • 1





    Please add some more context to the pages you're linking to, see How to answer

    – Joakim Danielson
    Nov 23 '18 at 9:57











  • I have tried to use Scrapy but it is not useful for me as i do not want to open a browser. What i want is to scrape data directly into a variable.

    – A_N
    Nov 26 '18 at 4:48














0












0








0







Use scrapy. Start with the tutorial.






share|improve this answer













Use scrapy. Start with the tutorial.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 '18 at 21:33









J_HJ_H

3,7451719




3,7451719








  • 1





    Please add some more context to the pages you're linking to, see How to answer

    – Joakim Danielson
    Nov 23 '18 at 9:57











  • I have tried to use Scrapy but it is not useful for me as i do not want to open a browser. What i want is to scrape data directly into a variable.

    – A_N
    Nov 26 '18 at 4:48














  • 1





    Please add some more context to the pages you're linking to, see How to answer

    – Joakim Danielson
    Nov 23 '18 at 9:57











  • I have tried to use Scrapy but it is not useful for me as i do not want to open a browser. What i want is to scrape data directly into a variable.

    – A_N
    Nov 26 '18 at 4:48








1




1





Please add some more context to the pages you're linking to, see How to answer

– Joakim Danielson
Nov 23 '18 at 9:57





Please add some more context to the pages you're linking to, see How to answer

– Joakim Danielson
Nov 23 '18 at 9:57













I have tried to use Scrapy but it is not useful for me as i do not want to open a browser. What i want is to scrape data directly into a variable.

– A_N
Nov 26 '18 at 4:48





I have tried to use Scrapy but it is not useful for me as i do not want to open a browser. What i want is to scrape data directly into a variable.

– A_N
Nov 26 '18 at 4:48




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399065%2fhow-to-programatically-python-scrape-streaming-live-stock-chart-ticker-data-an%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to pass form data using jquery Ajax to insert data in database?

National Museum of Racing and Hall of Fame

Guess what letter conforming each word