How to Open Hidden Information on Website

How can I open hidden information on website

Since the content you are looking for is generated from javascript, you need to emulate a browser. You can use selenium to do that:

from selenium import webdriver

with webdriver.Firefox() as driver: # e.g. using Firefox webdriver
driver.get('your_url_here')
i = driver.find_elements_by_tag_name("fgis-root")

Also check-out here all the available methods that selenium provides to locate elements in a page.

Is there any way to see hidden content on a website maybe hidden cloudfront links?

It depends on how they have 'hidden' the content:

  • If they just use display: none; or visibility: hidden; (i.e. they sytlistically hide it) then you can't see it as the browser won't render the item, but it will still exist in the HTML; if it's an image, the link to the image will be valid, or if it is text you can just read it.

  • In your example, they are using some server-side code to limit what is actually emitted into HTML - thus there is nothing there. That way people can't just inspect the source and hack around it.

is it possible to find hidden files on website?

If you put index.html in that directory, so no files will be listed. If you allow to upload to that directory, so i can upload some php script to list all files in directory. IF you don't know file name, you can try to guess it :)

How to view the html code that is used to display hidden json data?

The code YouTube is generating is thus...

  <div class="comments-iframe-container">
<div style="text-indent: 0px; margin: 0px; padding: 0px; background: none repeat scroll 0% 0% transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 591px; height: 4799px;" id="comments-test-iframe"><iframe title="Comment on this" data-gapiattached="true" src="https://plus.googleapis.com/u/0/_/widget/render/comments?usegapi=1&first_party_property=YOUTUBE&href=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DOWsyrnOBsJs&owner_id=o5--boVIi-ow0xAU3VyxMg&query=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DOWsyrnOBsJs&stream_id=UCo5--boVIi-ow0xAU3VyxMg&substream_id=OWsyrnOBsJs&view_type=FILTERED&width=590&youtube_video_acl=PUBLIC&hl=en_GB&origin=https%3A%2F%2Fwww.youtube.com&search=%3Fv%3DOWsyrnOBsJs&hash=&gsrc=1p&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.gapi.en.TY07tiUU0tE.O%2Fm%3D__features__%2Frt%3Dj%2Fd%3D1%2Frs%3DAItRSTNfGmB_-do3YO3g20AHt3L6itPzpQ#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Confirsttimeplusonepromo%2Conthumbsup%2Contimestampclicked%2Conready%2Conupgradeaccount%2Conallcommentsclicked&id=I0_1403359704352&parent=https%3A%2F%2Fwww.youtube.com&pfname=&rpctoken=50836660" name="I0_1403359704352" id="I0_1403359704352" vspace="0" tabindex="0" style="position: static; top: 0px; width: 590px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 4799px;" scrolling="no" marginwidth="0" marginheight="0" hspace="0" frameborder="0" width="100%"></iframe></div>
<div style="display: none;" id="distiller-spinner" class="action-panel-loading hid">
<p class="yt-spinner">
<img src="https://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" class="yt-spinner-img" alt="Loading icon">

<span class="yt-spinner-message">
Loading...
</span>
</p>

</div>
</div>

The comments are shown with an iframe and are hosted on https://plus.googleapis.com. This has security settings set up so you can't access them directly by going to that URL. Firebug should allow you to inspect them within the YouTube page, however. Not sure why you will have had difficulty doing that.

I have copied the iframe's code here: http://jsfiddle.net/dCYTA/ - firebug is probably also your friend here, as the raw code is pretty messy.



Related Topics



Leave a reply



Submit