Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you get information from an iframe? (javascript and/or python)
    primarykey
    data
    text
    <p>The only programming language I really know right now is python. I am pretty new to javascript. Right now, I'm trying to make a simple program that goes through a website and gathers information for me. </p> <p>On the website, there is a long list of links to other pages. If you hover near one, another link will come up on the side that says "Find Dupes" (short for duplicates). I found this in the page source:</p> <pre><code>&lt;a href="javascript:void(0)" onclick="getDuplictes(1020347166, true)"&gt;Find Dupes&lt;/a&gt; </code></pre> <p>So when you click on the javascript link, an iframe will pop up:</p> <pre><code>&lt;/div&gt; &lt;/center&gt; &lt;div id="ActionDiv" style="position: absolute;z-index: 400; width:400; display:none"&gt; &lt;iframe id="ActionFrame" src="" style="width:400;height:400" scrolling="no" frameborder="0" &gt;&lt;/iframe&gt; &lt;/div&gt; &lt;div id="DuplicatesDiv" style="position: absolute;z-index: 200; width:600; display:none"&gt; &lt;iframe id="DuplicatesFrame" src="" style="width:600;height:400" scrolling="auto" frameborder="0" &gt;&lt;/iframe&gt; &lt;/div&gt; &lt;script&gt; function getDuplictes(placeId, findInLoca, feedId){ if(isUndefined(feedId)){ feedId = 0; } if(isUndefined(findInLoca)){ duplicatesUrl = "/places/duplicates.jsp?inPID=" + placeId + "&amp;inFeedID=" + feedId; }else{ duplicatesUrl = "/places/duplicates.jsp?inPID=" + placeId + "&amp;inFindInLoca=" + findInLoca + "&amp;inFeedID=" + feedId; } showFrameDiv( duplicatesUrl, "DuplicatesFrame", "DuplicatesDiv", "LocaBlur") } &lt;/script&gt; </code></pre> <p>And the information will be different each time, based on which link you click.</p> <p>What I want to do is somehow get the information that is displayed in the iframe in an organized, readable form without actually opening and using the web browser. I want to be able to look at the content of one iframe, decide if I need it or not, and click next to see the next one. There are about 100 of these "Find Dupes" iframes per page and maybe 50 pages. Anyway, my main problem is how to get the content of the specific iframe using python or javascript or something (I'm clueless with javascript...)</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload