Automatically parse text from a website dialog boxWhat does Ruby have that Python doesn't, and vice versa?Automatic input from text file in excelFacebook api graph access token503 Reponse when trying to use python request on local websiteHow to get googles “fast answer box” text?Using python 3 to fill in text boxes on websites, and clicking button to downloadAllow requests to redirect with Python to read webpagescript for integrated linux terminal with browser?Python2.7. Access an HTTPS Website and retrieve contentpython - read strings printed by php

Using quotation marks and exclamation marks

When does it become illegal to exchange bitcoin for cash?

How useful would a hydroelectric power plant be in the post-apocalypse world?

SQL Server Ignoring Instance name when using port number of different instance

How can solar sailed ships be protected from space debris?

Does friction always oppose motion?

Why are symbols not written in words?

Installed software from source, how to say yum not to install it from package?

Are the Gray and Death Slaad's Bite and Claw attacks magical?

Odd PCB Layout for Voltage Regulator

I agreed to cancel a long-planned vacation (with travel costs) due to project deadlines, but now the timeline has all changed again

Does Dhp 256-257 condone judging others?

2019 2-letters 33-length list

Emphasize numbers in tables

Is it theoretically possible to hack printer using scanner tray?

How come having a Deathly Hallow is not a big deal?

Square wave to sawtooth wave using two BJT

Why can't i use !(single pattern) in zsh even after i turn on kshglob?

"Best practices" for formulating MIPs

How do I tell my girlfriend she's been buying me books by the wrong author for the last nine months?

Can I hire several veteran soldiers to accompany me?

My mom helped me cosign a car and now she wants to take it

Aligning arrays within arrays within another array

German idiomatic equivalents of 能骗就骗 (if you can cheat, then cheat)



Automatically parse text from a website dialog box


What does Ruby have that Python doesn't, and vice versa?Automatic input from text file in excelFacebook api graph access token503 Reponse when trying to use python request on local websiteHow to get googles “fast answer box” text?Using python 3 to fill in text boxes on websites, and clicking button to downloadAllow requests to redirect with Python to read webpagescript for integrated linux terminal with browser?Python2.7. Access an HTTPS Website and retrieve contentpython - read strings printed by php













1















This website contains a column Index Constituents. Clicking any of the sheet symbols in that column, opens up a modal box.



How can I open such a modal box and retrieve its content as text, using python code?



import requests
r = requests.get("https://indexes.morningstar.com/indexdata")
print(r.text)


Only reads the host website, obviously.










share|improve this question




























    1















    This website contains a column Index Constituents. Clicking any of the sheet symbols in that column, opens up a modal box.



    How can I open such a modal box and retrieve its content as text, using python code?



    import requests
    r = requests.get("https://indexes.morningstar.com/indexdata")
    print(r.text)


    Only reads the host website, obviously.










    share|improve this question


























      1












      1








      1








      This website contains a column Index Constituents. Clicking any of the sheet symbols in that column, opens up a modal box.



      How can I open such a modal box and retrieve its content as text, using python code?



      import requests
      r = requests.get("https://indexes.morningstar.com/indexdata")
      print(r.text)


      Only reads the host website, obviously.










      share|improve this question
















      This website contains a column Index Constituents. Clicking any of the sheet symbols in that column, opens up a modal box.



      How can I open such a modal box and retrieve its content as text, using python code?



      import requests
      r = requests.get("https://indexes.morningstar.com/indexdata")
      print(r.text)


      Only reads the host website, obviously.







      python python-requests






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 18:47







      user1934212

















      asked Mar 25 at 16:41









      user1934212user1934212

      2,1587 gold badges32 silver badges59 bronze badges




      2,1587 gold badges32 silver badges59 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          1














          Hello user1934212,



          this 'Dialog Box' is a 'Bootstrap Vue Modal' which you can parse pretty easy.



          This little code snippet below is parsing the 'Index Constituents' from the first entry (Morningstar Australia Moat Focus GR AUD) in the table.



          import requests
          r = requests.get("https://indexes.morningstar.com/getIndex/holdings/0P0001A41J")
          data = r.json()
          print(data)


          Basicly you can iterate over the 'Index Constituents' column and use each id of the button to get the content you want.



          https://indexes.morningstar.com/getIndex/holdings/HERE_ID


          If you have more questions about this feel free to ask, I'll answer later.



          Screenshot of the ID






          share|improve this answer






















            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%2f55342599%2fautomatically-parse-text-from-a-website-dialog-box%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









            1














            Hello user1934212,



            this 'Dialog Box' is a 'Bootstrap Vue Modal' which you can parse pretty easy.



            This little code snippet below is parsing the 'Index Constituents' from the first entry (Morningstar Australia Moat Focus GR AUD) in the table.



            import requests
            r = requests.get("https://indexes.morningstar.com/getIndex/holdings/0P0001A41J")
            data = r.json()
            print(data)


            Basicly you can iterate over the 'Index Constituents' column and use each id of the button to get the content you want.



            https://indexes.morningstar.com/getIndex/holdings/HERE_ID


            If you have more questions about this feel free to ask, I'll answer later.



            Screenshot of the ID






            share|improve this answer



























              1














              Hello user1934212,



              this 'Dialog Box' is a 'Bootstrap Vue Modal' which you can parse pretty easy.



              This little code snippet below is parsing the 'Index Constituents' from the first entry (Morningstar Australia Moat Focus GR AUD) in the table.



              import requests
              r = requests.get("https://indexes.morningstar.com/getIndex/holdings/0P0001A41J")
              data = r.json()
              print(data)


              Basicly you can iterate over the 'Index Constituents' column and use each id of the button to get the content you want.



              https://indexes.morningstar.com/getIndex/holdings/HERE_ID


              If you have more questions about this feel free to ask, I'll answer later.



              Screenshot of the ID






              share|improve this answer

























                1












                1








                1







                Hello user1934212,



                this 'Dialog Box' is a 'Bootstrap Vue Modal' which you can parse pretty easy.



                This little code snippet below is parsing the 'Index Constituents' from the first entry (Morningstar Australia Moat Focus GR AUD) in the table.



                import requests
                r = requests.get("https://indexes.morningstar.com/getIndex/holdings/0P0001A41J")
                data = r.json()
                print(data)


                Basicly you can iterate over the 'Index Constituents' column and use each id of the button to get the content you want.



                https://indexes.morningstar.com/getIndex/holdings/HERE_ID


                If you have more questions about this feel free to ask, I'll answer later.



                Screenshot of the ID






                share|improve this answer













                Hello user1934212,



                this 'Dialog Box' is a 'Bootstrap Vue Modal' which you can parse pretty easy.



                This little code snippet below is parsing the 'Index Constituents' from the first entry (Morningstar Australia Moat Focus GR AUD) in the table.



                import requests
                r = requests.get("https://indexes.morningstar.com/getIndex/holdings/0P0001A41J")
                data = r.json()
                print(data)


                Basicly you can iterate over the 'Index Constituents' column and use each id of the button to get the content you want.



                https://indexes.morningstar.com/getIndex/holdings/HERE_ID


                If you have more questions about this feel free to ask, I'll answer later.



                Screenshot of the ID







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 25 at 17:49









                bschleybschley

                341 bronze badge




                341 bronze badge
















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    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%2f55342599%2fautomatically-parse-text-from-a-website-dialog-box%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

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript