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
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
add a comment |
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
add a comment |
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
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
python python-requests
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
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Mar 25 at 17:49
bschleybschley
341 bronze badge
341 bronze badge
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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